JGuizard
8/30/2016 - 8:53 AM

Telepot echo bot https://github.com/nickoala/telepot

import telepot
from telepot.namedtuple import ReplyKeyboardMarkup, KeyboardButton, ReplyKeyboardHide, ForceReply
from time import sleep

TOKEN = "210264774:AAFsAjexSd3SjRl8E3xWils14O2OZury_v8"

def handle(msg):
    content_type, chat_type, chat_id = telepot.glance(msg)    
    text=msg['text']
    print "Received: "+text
    bot.sendMessage(chat_id, text)

bot = telepot.Bot(TOKEN)
bot.message_loop(handle)
print 'Listening ...'
while 1:
    sleep(10)