Fix for issue #81

This commit is contained in:
Jannes Höke 2015-11-10 20:36:26 +01:00
parent dd498ded00
commit 0f8f6584ce

View file

@ -53,13 +53,13 @@ def echo(bot):
chat_id = update.message.chat_id chat_id = update.message.chat_id
reply_text = update.message.text reply_text = update.message.text
if (reply_text): if reply_text:
# Reply the message # Reply the message
bot.sendMessage(chat_id=chat_id, bot.sendMessage(chat_id=chat_id,
text=reply_text) text=reply_text)
# Updates global offset to get the new updates # Updates global offset to get the new updates
LAST_UPDATE_ID = update.update_id + 1 LAST_UPDATE_ID = update.update_id + 1
if __name__ == '__main__': if __name__ == '__main__':