mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update __init__.py
This commit is contained in:
parent
b684c4f60d
commit
b561e35330
@ -7,8 +7,6 @@ import sys
|
|||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from telebot.types import MessageID
|
|
||||||
|
|
||||||
logger = logging.getLogger('TeleBot')
|
logger = logging.getLogger('TeleBot')
|
||||||
formatter = logging.Formatter(
|
formatter = logging.Formatter(
|
||||||
'%(asctime)s (%(filename)s:%(lineno)d %(threadName)s) %(levelname)s - %(name)s: "%(message)s"'
|
'%(asctime)s (%(filename)s:%(lineno)d %(threadName)s) %(levelname)s - %(name)s: "%(message)s"'
|
||||||
@ -770,7 +768,7 @@ class TeleBot:
|
|||||||
:param timeout:
|
:param timeout:
|
||||||
:return: API reply.
|
:return: API reply.
|
||||||
"""
|
"""
|
||||||
return MessageID.de_json(
|
return types.MessageID.de_json(
|
||||||
apihelper.copy_message(self.token, chat_id, from_chat_id, message_id, caption, parse_mode, caption_entities,
|
apihelper.copy_message(self.token, chat_id, from_chat_id, message_id, caption, parse_mode, caption_entities,
|
||||||
reply_to_message_id, allow_sending_without_reply, reply_markup,
|
reply_to_message_id, allow_sending_without_reply, reply_markup,
|
||||||
disable_notification, timeout))
|
disable_notification, timeout))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user