telegram bot api python library code example
Example: telegram bot python
import telepot
from telepot.loop import MessageLoop
def handle(msg):
content_type, chat_type, chat_id = telepot.glance(msg)
print(content_type, chat_type, chat_id)
bot = telepot.Bot("INSERT TOKEN HERE")
bot.message_loop(handle)