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

Merge pull request #21 from Zerocchi/patch-1

Correcting code error
This commit is contained in:
FrankWang 2015-07-03 07:43:31 +08:00
commit 3d3dbbdf23

View File

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