1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update Readme.

This commit is contained in:
eternnoir 2015-06-28 17:21:11 +08:00
parent 891b66b3cc
commit 1a8fd78204

View File

@ -48,8 +48,9 @@ def listener(*messages):
""" """
for m in messages: for m in messages:
chatid = m.chat.id chatid = m.chat.id
text = m.text if m.content_type == 'text'
tb.send_message(chatid, text) text = m.text
tb.send_message(chatid, text)
tb = telebot.TeleBot(TOKEN) tb = telebot.TeleBot(TOKEN)