-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
Milestone
Description
If you are trying to send a message to supergroup via it's @username instead of chat_id, botogram fails with this error:
16:34.42 - WARNING - Chat 0 is not available to your bot:
16:34.42 - WARNING - The chat with ID 0 doesn't exist
16:34.42 - WARNING - Update #979264137 processing aborted!
Last time it worked in 0.2.2 release. It's been broken since commit 9e142ea
Now if botogram detects string as chat_id it thinks that we are going to send our message to the telegram channel, which has slightly different Telegram API call, where we need to specify "id": 0, "type": "channel"
.
Because both supergroups and channels have string ids but different API calls, I can't think of any good workaround. The ugly thing would be to make a separate method for sending to supergroups by @username.