Closed komailghasemi closed 5 years ago
ServerPublicKey
seems to be in wrong format!
PhoneNumber
must start with a leading +
. For example +49
for germany
ServerPublicKey
seems to be in wrong format!PhoneNumber
must start with a leading+
. For example+49
for germany
i know about number but about ServerPublicKey ServerPublicKey is not mtproto secret key ????
You get the ServerPublicKey
from https://my.telegram.org/apps
See: https://github.com/OpenTl/OpenTl.ClientApi/wiki/Quick-Start
You get the
ServerPublicKey
from https://my.telegram.org/appsSee: https://github.com/OpenTl/OpenTl.ClientApi/wiki/Quick-Start
oh oh yea ... thx alot im going to test it ❤❤❤
You get the
ServerPublicKey
from https://my.telegram.org/appsSee: https://github.com/OpenTl/OpenTl.ClientApi/wiki/Quick-Start
var settings = new FactorySettings
{
AppHash = "731...2411417",
AppId = 1...2,
ServerAddress = "167.99.44.8",
ServerPublicKey = @"MIIBCgKCAQEAwVACPi9w23mF3tBkdZz.......SIXklHwIDAQAB",
ServerPort = 80,
SessionTag = "session",
Properties = new ApplicationProperties()
};
clientApi = await ClientFactory.BuildClientAsync(settings);
if (!clientApi.AuthService.CurrentUserId.HasValue)
{
var phone = txtNumber.Text;
var sentCode = await clientApi.AuthService.SendCodeAsync(phone);
}
not working :((
didnt send me the code
i wanna use mtproto proxy in my client how can i use it with this library ?????
why did ou close. if u can use, can u write clean code here please?
i copied this code in my C# program 👇👇👇
But didnt send telegrams code to me !!!