wiz0u / WTelegramClient

Telegram Client API (MTProto) library written 100% in C# and .NET
https://wiz0u.github.io/WTelegramClient/
MIT License
990 stars 163 forks source link

Logout Active Session : Account_GetAuthorizations return 0 hash for active session #240

Closed lucaswhob closed 7 months ago

lucaswhob commented 7 months ago

Hello I Used Your Library Login Saved Session Is Ok Bu I Need Logout Session Created by My App I Get Active All Session by Account_Authorizations getsession = Task.Run(async () => await clienttelegram2.Account_GetAuthorizations()).Result; foreach (TL.Authorization item in getsession.authorizations) { if (item.api_id == XXXXXXX) { bool logoutok = Task.Run(async () => await clienttelegram2.Account_ResetAuthorization(item.hash)).Result; break; } } But hash Active session return 0 Please Help me Thx

lucaswhob commented 7 months ago

please See this screenshot of my code See ScreenShot I Need Only Logout My Session Not All Other Session . Thx .

github-actions[bot] commented 7 months ago

Please note that Github Issues should be used only for problems with the library code itself. For questions about Telegram API usage, you can search the API official documentation or click here to ask your question on StackOverflow so the whole community can help and benefit.

lucaswhob commented 7 months ago

This Is Your Library Problem Other Library Return Session Hash Correctly Your Library Return Session Hash Zero 0

lucaswhob commented 7 months ago

problem solved : https://stackoverflow.com/questions/78200736/telegram-logout-active-session-account-getauthorizations-return-0-hash-for-act thx .