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()