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

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

Open
Rinarikato opened this issue Jun 26, 2024 · 1 comment
Open

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

Rinarikato opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Rinarikato
Copy link

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

@Rinarikato Rinarikato added the bug Something isn't working label Jun 26, 2024
@cleanerspam
Copy link

add -100 before each channel id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants