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

Telegram API has returned the error. (ok: "false", error_code: "400", description: "[Error]: PEER_ID_INVALID") #25

Closed
sealabcore opened this issue Dec 1, 2015 · 3 comments

Comments

@sealabcore
Copy link

There seems to be a change in how bots can message users on Telegram we used to be able to pass the chat id.

Now when we do this we get the error message
Telegram API has returned the error. (ok: "false", error_code: "400", description: "[Error]: PEER_ID_INVALID")

Any idea how our bot can now message our users that initiate a conversation with us?

@sealabcore
Copy link
Author

method in question is

client.api.send_message(chat_id: <CHAT_ID>, text: 'Hi')

@atipugin
Copy link
Owner

atipugin commented Dec 4, 2015

Could you provide the code of your bot?

@sealabcore
Copy link
Author

This is a confirmed Telegram API bug, unrelated to the ruby gem. I have a dialogue open with them on Telegram support channel on Telegram.

Thanks for following up.

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

2 participants