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

Renaming back pytelegrambotapi module to telebot

This commit is contained in:
Waffle
2018-04-28 13:50:59 +03:00
parent 183230e927
commit 3ba9799b98
18 changed files with 102 additions and 102 deletions

View File

@ -2,8 +2,8 @@
This is a detailed example using almost every command of the API
"""
import pytelegrambotapi
from pytelegrambotapi import types
import telebot
from telebot import types
import time
TOKEN = '<token_string>'
@ -48,7 +48,7 @@ def listener(messages):
print str(m.chat.first_name) + " [" + str(m.chat.id) + "]: " + m.text
bot = pytelegrambotapi.TeleBot(TOKEN)
bot = telebot.TeleBot(TOKEN)
bot.set_update_listener(listener) # register listener