-
|
Hi. Please double check that your bot is a member of that chat. Note that bots can only be members of a channel if they are admin in that channel. To double check the chat_id, you can also extract it from the updates that your bot gets from that chat. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, you need to add "-" as prefix for your chat id, for example if chat id is 12345, you need to add -12345 |
Beta Was this translation helpful? Give feedback.
-
|
@Bibo-Joshi
|
Beta Was this translation helpful? Give feedback.
-
|
Please don't Tag people just to get attention. You are one of the participants in this issue. That's the reason of me mentioning you. |
Beta Was this translation helpful? Give feedback.
-
|
After installed python-telegram-bot, I ran a simple script as bellow: from telegram import Bot
my_token = '534*******:AAF*************'
channel_id = -10016********
def push_message(msg, chat_id=channel_id) -> None:
bot = Bot(my_token)
bot.sendMessage(chat_id, msg)
push_message('Hello channel')
I got an error telegram.error.BadRequest: Chat not found Someone please help me. I checked the channel ID and I think it's correct. I copied the message link from the channel then got the channel ID from this URL. I got the same issue too and didn't know how to resolve it. |
Beta Was this translation helpful? Give feedback.
-
|
After installed python-telegram-bot, I ran a simple script as bellow: from telegram import Bot
my_token = '534*******:AAF*************'
channel_id = -10016********
def push_message(msg, chat_id=channel_id) -> None:
bot = Bot(my_token)
bot.sendMessage(chat_id, msg)
push_message('Hello channel')
I got an error telegram.error.BadRequest: Chat not found Someone please help me. I checked the channel ID and I think it's correct. I copied the message link from the channel then got the channel ID from this URL. I resolved the issue. I found the previous channel id was incorrect. I issued the following command: https://api.telegram.org/bot<TOKEN>/getUpdates and check the id is -1002XXXXXXX under the channel name |
Beta Was this translation helpful? Give feedback.
-
|
You may encounter this error if your group was converted to a supergroup and then reverted back to a regular group. In this case, you also need to specify the parameter message_thread_id=0. Unfortunately, Telegram does not return the error "Topic cannot be," but instead writes "Chat not found." |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
{{title}}
Uh oh!
There was an error while loading. Please reload this page.
-
After installed python-telegram-bot, I ran a simple script as bellow:
I got an error telegram.error.BadRequest: Chat not found
Someone please help me.
I checked the channel ID and I think it's correct. I copied the message link from the channel then got the channel ID from this URL.
Beta Was this translation helpful? Give feedback.