aahnik / tgcf

The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
https://github.com/aahnik/tgcf/wiki
MIT License
1.29k stars 773 forks source link

error Invalid object ID for a chat when trying to use chat IDs #609

Open Rinarikato opened 1 week ago

Rinarikato commented 1 week ago

Describe the bug I'm trying to forward messages from a channel to a group using chat IDs on command line tgcf and I got the following error

ChatIdInvalidError: 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 GetHistoryRequest)

I'm running on Conda environment using Python 3.11.8 on Windows 11 2H11

when I use usernames like @channelexample everything is fine, just the ID's is not working.

I'm using the parameters -l past