rpgbot/get-sender-id.py

12 lines
222 B
Python

#!/usr/bin/python
import telepot
from pprint import pprint
import tempconfig
bot = telepot.Bot(tempconfig.bot_token)
response = bot.getUpdates()
# Print all raw messages with chat_id,text,type,username
pprint(response)