10 lines
217 B
Python
10 lines
217 B
Python
import telebot
|
|
|
|
|
|
class Bot:
|
|
def __init__(self, token, *args, **kwargs):
|
|
self.bot = telebot.TeleBot(token, *args, **kwargs)
|
|
|
|
def polling(self):
|
|
self.bot.infinity_polling(interval=0, timeout=20)
|