wiz0u / WTelegramClient

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

In the AnalyzeInviteLink method is an error: A task was canceled. #268

Closed 18374907010 closed 1 month ago

18374907010 commented 1 month ago

What is the cause of this exception and how can it be resolved?

System.Threading.Tasks.TaskCanceledException HResult=0x8013153B Message=A task was canceled. Source=WTelegramClient StackTrace: WTelegram.Client.d124.MoveNext() WTelegram.Client.d126`1.MoveNext() WTelegram.Client.d164.MoveNext() WTelegram.Client.d162.MoveNext() WTelegramService.d14.MoveNext() 在 \WTelegramService.cs Main.d7.MoveNext() 在 Main.cs

GetChatsByGroupLink(string, string)
JoinGroupByLinks(string, int, System.Collections.Generic.Dictionary<long, TL.ChatBase>, System.Collections.Generic.List<string>, System.Action<string, TL.ChatBase>)
wiz0u commented 1 month ago

I don't think this problem is related to AnalyzeInviteLink. I think you probably Disposed the Client or something like that, maybe in another thread/task