From 53ccef5e5e3261468b19059f36c3a6319352c487 Mon Sep 17 00:00:00 2001 From: Kwisatz Haderach <38349702+Otxoto@users.noreply.github.com> Date: Tue, 23 Jun 2020 20:14:52 +0200 Subject: [PATCH] added thumb parameter to send_video --- telebot/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 38867ad..c182463 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -709,6 +709,7 @@ class TeleBot: :param parse_mode :param disable_notification: :param timeout: + :param thumb: :return: Message """ return types.Message.de_json( @@ -771,7 +772,7 @@ class TeleBot: disable_notification, timeout)) def send_video(self, chat_id, data, duration=None, caption=None, reply_to_message_id=None, reply_markup=None, - parse_mode=None, supports_streaming=None, disable_notification=None, timeout=None): + parse_mode=None, supports_streaming=None, disable_notification=None, timeout=None, thumb=None): """ Use this method to send video files, Telegram clients support mp4 videos. :param chat_id: Integer : Unique identifier for the message recipient — User or GroupChat id @@ -784,11 +785,12 @@ class TeleBot: :param reply_markup: :param disable_notification: :param timeout: + :param thumb: :return: """ return types.Message.de_json( apihelper.send_video(self.token, chat_id, data, duration, caption, reply_to_message_id, reply_markup, - parse_mode, supports_streaming, disable_notification, timeout)) + parse_mode, supports_streaming, disable_notification, timeout, thumb)) def send_animation(self, chat_id, animation, duration=None, caption=None, reply_to_message_id=None, reply_markup=None, parse_mode=None, disable_notification=None, timeout=None):