Skip to content

Commit 12aec0b

Browse files
committed
Refactored types.py
1 parent 133f7f6 commit 12aec0b

File tree

4 files changed

+193
-454
lines changed

4 files changed

+193
-454
lines changed

telebot/telebot_class.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
from telebot.util import logger
99

1010

11-
class TeleBot(object, apihelper.TelegramApiInterface):
11+
class TeleBot(apihelper.TelegramApiInterface):
1212

1313
def __init__(self, token, request_executor=None):
1414
"""
1515
:param token: bot API token
1616
:return: Telebot object.
1717
"""
1818
request_executor = request_executor if request_executor is not None else apihelper.RequestExecutorImpl()
19-
super(TeleBot, self).__init__(token, request_executor)
19+
apihelper.TelegramApiInterface.__init__(self, token, request_executor)
2020

2121
self.token = token
2222
self.update_listeners = []

0 commit comments

Comments
 (0)