You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While researching telegram api
I found that api Auth.ExportAuthorization Auth.ImportAuthorization can transfer login session from one machine to another very quickly without logging in. I want to test it.
I exported the data to a file and then initialized an empty session, then imported it but it still failed
Where is my code wrong?
That is not what these methods do. They transfer session authorization to another DC among Telegram Data Centers. Not at all to be used on another of YOUR machines.
These methods are mostly used for downloading files residing on a different Data Center than the Main DC for your account. You shouldn't have to call them as WTelegramClient automatically handles this when you use DownloadFileAsync
Hello
When I'm test this code
`var client = new WTelegram.Client(Config);
await client.ConnectAsync();
await client.Users_GetUsers(InputUser.Self);
var authData = await client.Auth_ExportAuthorization(1);
var result = await client.Auth_ImportAuthorization(authData.id, authData.bytes);
`
Auth_ImportAuthorization throw exception
TL.RpcException
$>d__0.MoveNext() in D:\Projects_2024\Telegram.AirDrop\Telegram.GetSession\Program.cs:line 28HResult=0x80131600
Message=AUTH_BYTES_INVALID
Source=WTelegramClient
StackTrace:
at WTelegram.Client.d__129`1.MoveNext()
at Program.<
The text was updated successfully, but these errors were encountered: