1
0
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:
Alireza 2021-01-12 11:19:57 +03:30 committed by GitHub
parent b684c4f60d
commit b561e35330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,6 @@ import sys
import threading
import time
from telebot.types import MessageID
logger = logging.getLogger('TeleBot')
formatter = logging.Formatter(
'%(asctime)s (%(filename)s:%(lineno)d %(threadName)s) %(levelname)s - %(name)s: "%(message)s"'
@ -770,7 +768,7 @@ class TeleBot:
:param timeout:
: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,
reply_to_message_id, allow_sending_without_reply, reply_markup,
disable_notification, timeout))