Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bots can't send messages to other bots #6

Open
DanCousins opened this issue Sep 26, 2023 · 2 comments
Open

Bots can't send messages to other bots #6

DanCousins opened this issue Sep 26, 2023 · 2 comments

Comments

@DanCousins
Copy link

Hi there, trying to grab a new 15PM using your utility, but running into some issues with the telegram portion.

I've created an app, created a bot, punched in all my details.

Traceback (most recent call last): File "/home/dan/python/Apple-Store-Stock-Notifier/monitor.py", line 350, in <module> monitor = Monitor() File "/home/dan/python/Apple-Store-Stock-Notifier/monitor.py", line 170, in __init__ client.loop.run_until_complete(self.start_monitoring(client)) File "/usr/lib64/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/home/dan/python/Apple-Store-Stock-Notifier/monitor.py", line 180, in start_monitoring await send(client, message) File "/home/dan/python/Apple-Store-Stock-Notifier/utils.py", line 20, in send await client.send_message(username, message) File "/home/dan/.local/lib/python3.10/site-packages/telethon/client/messages.py", line 853, in send_message result = await self(request) File "/home/dan/.local/lib/python3.10/site-packages/telethon/client/users.py", line 30, in __call__ return await self._call(self._sender, request, ordered=ordered) File "/home/dan/.local/lib/python3.10/site-packages/telethon/client/users.py", line 79, in _call result = await future telethon.errors.rpcerrorlist.UserIsBotError: Bots can't send messages to other bots (caused by SendMessageRequest)

Hope you can help,
Thanks

@kaktus210
Copy link

have same error

@fruitcoder
Copy link

fruitcoder commented Oct 5, 2023

Update the telethon version to 1.30.3 and rerun pip (and delete the last session)

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

No branches or pull requests

3 participants