sochix / TLSharp

Telegram client library implemented in C#
1k stars 380 forks source link

msqseqno too low #401

Open Ozymandy opened 7 years ago

Ozymandy commented 7 years ago

When I make request to the telegram api get this error. msgseqno too low. Generally when I try to check username What am I doing wrong? How to avoid this?

knocte commented 7 years ago

Please paste the whole exception.

Ozymandy commented 7 years ago

0b3e61fda4b0b60377c09ec9faff7e16bb6d8b4277dc659ae2 pimgpsh_fullsize_distr

schlumpf90 commented 7 years ago

I know this message.

In my selfmade application I tried to connect to the telegram server twice in one function with the same var name.

You can use "var client = new TelegramClient(........)" twice in one function but you have to change the varname.... e.g.:

1.: var client = new TelegramClient(........); await client.ConnectAsync();

2.: var client2 = new TelegramClient(........); await client2.ConnectAsync();

Ozymandy commented 7 years ago

And also sometimes I get FloodException but I make request with Thread.Sleep(10000). Why it happens?

knocte commented 7 years ago

@Ozymandy this issue is about error "msgseqno too low". If you want to discuss a FloodException, open a new github issue.

hosseinGanjyar commented 6 years ago

@Ozymandy Solved your problem? please write answer.