-
2021-04-05 21:04:10,382 - root - ERROR - Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead (caused by SendMessageRequest)
Traceback (most recent call last):
File "/home/kali/Downloads/tgcf-main/forwarder.py", line 53, in forward_job
await client.send_message(intify(to_chat), replace(message))
File "/home/kali/.local/lib/python3.9/site-packages/telethon/client/messages.py", line 804, in send_message
result = await self(request)
File "/home/kali/.local/lib/python3.9/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/home/kali/.local/lib/python3.9/site-packages/telethon/client/users.py", line 79, in _call Getting this error while copying all messages of a joined private channel to my channel and group |
Beta Was this translation helpful? Give feedback.
Answered by
aahnik
Apr 6, 2021
Replies: 1 comment 12 replies
-
I think you have used the wrong chat ids for the chats. In your Take help of the @userinfobot on telegram. |
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
aahnik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you have used the wrong chat ids for the chats.
In your
config.ini
, you should use correct chat ids for thefrom
andto
.Take help of the @userinfobot on telegram.