mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update Readme.
This commit is contained in:
parent
891b66b3cc
commit
1a8fd78204
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user