1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #1513 from Badiboy/master

typo
This commit is contained in:
Badiboy 2022-04-23 20:20:17 +03:00 committed by GitHub
commit 5077289d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1501,11 +1501,11 @@ class AsyncTeleBot:
result = await asyncio_helper.get_chat_administrators(self.token, chat_id) result = await asyncio_helper.get_chat_administrators(self.token, chat_id)
return [types.ChatMember.de_json(r) for r in result] 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: async def get_chat_members_count(self, chat_id: Union[int, str]) -> int:
""" """
This function is deprecated. Use `get_chat_member_count` instead 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) result = await asyncio_helper.get_chat_member_count(self.token, chat_id)
return result return result
@ -1513,7 +1513,7 @@ class AsyncTeleBot:
""" """
Use this method to get the number of members in a chat. Returns Int on success. 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: :param chat_id:
:return: :return: