murray3
murray3

Reputation: 71

Telegram bot message format

There is an image in the telegram docs showing a Formatted message with an image and text under, It's from TechCrunch. I have tried to replicate this and failed. How can one replicate this format. I am using Python

    def reply(msg=None, img=None):
        if msg:
            resp = urllib2.urlopen(BASE_URL + 'sendPhoto', urllib.urlencode({
                'chat_id': str(chat_id),
                'caption': msg,
            })).read()

Upvotes: 0

Views: 2487

Answers (1)

newsha
newsha

Reputation: 1438

In case you are talking about this image here i'm pretty sure it was done with sendPhoto() method. Text can be placed under the image by using the optional caption parameter.

Telegram Bot API sendPhoto

Upvotes: 1

Related Questions