How to send photo on telegram bot
<p>i'm just implementing a simple bot who should send some photos and videos to my <code>chat_id</code>. 
Well, i'm using python, this is the script</p>

<pre><code>import sys
import time
import random
import datetime
import telepot

def handle(msg):
    chat_id = msg['chat']['id']
    command = msg['text']

    print 'Got command: %s' % command

    if command == 'command1':
        bot.sendMessage(chat_id, *******)
    elif command == 'command2':
        bot.sendMessage(chat_id, ******)
    elif command == 'photo':
        bot.sendPhoto(...)

bot = telepot.Bot('*** INSERT TOKEN ***')
bot.message_loop(handle)
print 'I am listening ...'

while 1:
    time.sleep(10)
</code></pre>

<p>In the line <code>bot.sendphoto</code> I would insert the path and the <code>chat_id</code> of my image but nothing happens.</p>

<p>Where am I wrong?</p>

<p>thanks</p>