From b146df346dab963f9c574e59681a4f05a47e0861 Mon Sep 17 00:00:00 2001 From: coder2020official Date: Sun, 17 Apr 2022 16:46:38 +0500 Subject: [PATCH] Indentation fix to fit documentation. --- telebot/__init__.py | 6 +++--- telebot/async_telebot.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 55be7af..a33b265 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -2049,7 +2049,7 @@ class TeleBot: Telegram documentation: https://core.telegram.org/bots/api#setchatmenubutton :param chat_id: Unique identifier for the target private chat. - If not specified, default bot's menu button will be changed + If not specified, default bot's menu button will be changed. :param menu_button: A JSON-serialized object for the new bot's menu button. Defaults to MenuButtonDefault """ @@ -2065,7 +2065,7 @@ class TeleBot: Telegram Documentation: https://core.telegram.org/bots/api#getchatmenubutton :param chat_id: Unique identifier for the target private chat. - If not specified, default bot's menu button will be returned + If not specified, default bot's menu button will be returned. :return: types.MenuButton """ @@ -2100,7 +2100,7 @@ class TeleBot: :param for_channels: Pass True to get the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be returned. :return: types.ChatAdministratorRights """ - + return types.ChatAdministratorRights.de_json(apihelper.get_my_default_administrator_rights(self.token, for_channels)) diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 4dd78a7..a2fdd75 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -2667,7 +2667,7 @@ class AsyncTeleBot: Telegram documentation: https://core.telegram.org/bots/api#setchatmenubutton :param chat_id: Unique identifier for the target private chat. - If not specified, default bot's menu button will be changed + If not specified, default bot's menu button will be changed. :param menu_button: A JSON-serialized object for the new bot's menu button. Defaults to MenuButtonDefault """ @@ -2683,7 +2683,7 @@ class AsyncTeleBot: Telegram Documentation: https://core.telegram.org/bots/api#getchatmenubutton :param chat_id: Unique identifier for the target private chat. - If not specified, default bot's menu button will be returned + If not specified, default bot's menu button will be returned. :return: types.MenuButton """