wiz0u / WTelegramClient

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

Messages_GetAllChats throws RpcException INPUT_METHOD_INVALID_2271179966_X [fixed in 3.4.2] #142

Closed stockvn closed 1 year ago

stockvn commented 1 year ago

when I run code : var chats = await _client.Messages_GetAllChats(null); error message occured

stockvn commented 1 year ago

image

wiz0u commented 1 year ago

Telegram suddenly removed Messages_GetAllChats method 🤦🏻‍♂️ even though the method is listed in the official layer schema 🤷🏻‍♂️

I just released WTelegramClient 3.4.2 to fix the issue by bringing back method Messages_GetAllChats as a helper based on GetAllDialogs

So upgrade your version of the library on nuget and that should fix your problem

wiz0u commented 1 year ago

Fixed in nuget version 3.4.2 with commit 7c7a2a062594fc2c846c86a4dafdb4ae76d8c5c6

(I'll keep this issue open for a while for better visibility)

RakeshKumar1684 commented 1 year ago

Hi Still Have same issue after updating it to nuget WTelegram ver to 3.4.2 on calling Messages_GetAllChats:

▶ | $exception | {"INPUT_METHOD_INVALID_2271179966_X"} | TL.RpcException

wiz0u commented 1 year ago

Hi Still Have same issue after updating it to nuget WTelegram ver to 3.4.2 on calling Messages_GetAllChats:

Remove the null argument. The new Messages_GetAllChats helper in v3.4.2 should be called without arguments (otherwise you're still calling the API method that Telegram forcibly invalidated while leaving it in current API layer)

gejuking commented 1 year ago

var chats = await _client.Messages_GetAllChats(null);

try to

var chats = await _client.Messages_GetAllChats();