From a54b21cb508bd5f664cda2f091869d77a5bda52e Mon Sep 17 00:00:00 2001 From: Badiboy Date: Sat, 23 Apr 2022 20:19:25 +0300 Subject: [PATCH] type --- telebot/async_telebot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 6496e1b..fedad40 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -1501,11 +1501,11 @@ class AsyncTeleBot: result = await asyncio_helper.get_chat_administrators(self.token, chat_id) return [types.ChatMember.de_json(r) for r in result] + @util.deprecated(deprecation_text="Use get_chat_member_count instead") async def get_chat_members_count(self, chat_id: Union[int, str]) -> int: """ This function is deprecated. Use `get_chat_member_count` instead """ - logger.info('get_chat_members_count is deprecated. Use get_chat_member_count instead.') result = await asyncio_helper.get_chat_member_count(self.token, chat_id) return result @@ -1513,7 +1513,7 @@ class AsyncTeleBot: """ Use this method to get the number of members in a chat. Returns Int on success. - Telegram documentation: https://core.telegram.org/bots/api#getchatmemberscount + Telegram documentation: https://core.telegram.org/bots/api#getchatmembercount :param chat_id: :return: