Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Traceback error with latest version #12

Closed
oskargehringer opened this issue Sep 28, 2021 · 2 comments
Closed

Traceback error with latest version #12

oskargehringer opened this issue Sep 28, 2021 · 2 comments

Comments

@oskargehringer
Copy link

Hey there,
I'm getting the following error that I did not get with the version before. In the previous version, the bot somehow simply does not send to that group and there is no error. I see what the error means but would it be possible to catch it and make the bot send again to that group once the required wait time is over? The error:

[15:15:38.153] Sending message to BSCApe
Traceback (most recent call last):
File "/app/tg_shill_bot.py", line 149, in
LOOP.run_until_complete(start())
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/app/tg_shill_bot.py", line 142, in start
await do_raid()
File "/app/tg_shill_bot.py", line 119, in do_raid
await asyncio.gather(*tasks)
File "/app/tg_shill_bot.py", line 102, in raid
await send_message(channel)
File "/app/tg_shill_bot.py", line 86, in send_message
await CLIENT.send_message(entity, new_message)
File "/usr/local/lib/python3.9/site-packages/telethon/client/messages.py", line 853, in send_message
result = await self(request)
File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 79, in _call
result = await future
telethon.errors.rpcerrorlist.SlowModeWaitError: A wait of 559 seconds is required before sending another message in this chat (caused by SendMessageRequest)

Thanks in advance.

@EnorMOZ
Copy link
Contributor

EnorMOZ commented Sep 28, 2021

@oskargehringer See if the latest commit helps.

@gkspranger
Copy link
Contributor

this has been fixed with this commit

6a5911e

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants