Last active
September 17, 2017 21:09
-
-
Save eteamin/bb6274e66ca548ae793416cb0c37fce4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from telegram import Bot | |
bot = Bot(token='token') | |
offset = 0 | |
while True: | |
updates = bot.get_updates(offset=offset) | |
for update in updates: | |
if update: | |
offset = update.update_id + 1 | |
bot.send_message(update.message.chat.id, update.message.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment