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

Correcting code error

This commit is contained in:
M Afiq 2015-07-03 06:09:58 +08:00
parent b17416e718
commit ce07b5408e

View File

@ -39,6 +39,7 @@ print tb.send_message(281281, 'gogo power ranger')
```python ```python
import telebot import telebot
import time
TOKEN = '<token_string>' TOKEN = '<token_string>'
@ -51,7 +52,7 @@ def listener(*messages):
""" """
for m in messages: for m in messages:
chatid = m.chat.id chatid = m.chat.id
if m.content_type == 'text' if m.content_type == 'text':
text = m.text text = m.text
tb.send_message(chatid, text) tb.send_message(chatid, text)