Pass its id
Enter Channel ID :- -1001716511379 Task exception was never retrieved future: <Task finished name='Task-735' coro=<UpdateMethods._dispatch_update() done, defined at /usr/lib/python3.11/site-packages/telethon/client/updates.py:494> exception=ValueError('Cannot find any entity corresponding to "-1001716511379"')> Traceback (most recent call last):
This happens whenever I pass I'd instead of username
Still when I send any message in private channel it dosent work
How did you know it doesn't work. and do the common sense confirmations, debugging prints, right account used, right id passed, right chat the message was sent to, if all correct, show your final code
It dosent print any output or error logging when the new post is done in private channels However its working good for private channel
the sessions are probably not even members in it. try to set a generic NewMessage without chats= or anything and print the events
How to get events using chat I'd instead of username ?
Обсуждают сегодня