Slartibartfast
Slartibartfast

Reputation: 1190

Not able to send pictures to telegram

I have a simple telegram code to send text and image.

import telegram

bot = telegram.Bot('********:*********')

bot.sendMessage(chat_id=chat_id, text='hello')
bot.sendPhoto(chat_id=chat_id, photo = 'C:\\Users\\user\\Pictures\\Wallpapers\\alley-89197_1920.jpg')

For a while i was able to atleast send the text but now I am getting the following error:

Unauthorized: Forbidden: bot can't send messages to bots

Could you please advise why I am getting this error?

Upvotes: 0

Views: 1248

Answers (1)

CallMeStag
CallMeStag

Reputation: 7050

Please read the official FAQ: https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots

TL;DR: Telegram bots can't talk to other Telegram bots.

Upvotes: 2

Related Questions