mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
Update Readme.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user