aiogram icon indicating copy to clipboard operation
aiogram copied to clipboard

`GetChatMemberCount` vs `GetChatMembersCount` in the 3.x docs

Open MassonNN opened this issue 3 years ago • 3 comments

Checklist

  • [X] I am sure the error is coming from aiogram code
  • [X] I have searched in the issue tracker for similar bug reports, including closed ones

Operating system

n/a

Python version

n/a

aiogram version

3.0

Expected behavior

Only getChatMemberCount page in methods docs is exists

Current behavior

getChatMembersCount and getChatMemberCount pages are exists

Steps to reproduce

  1. Open 3.x docs
  2. Open "Bot API" page
  3. Open "Methods" page
  4. See the misspell

Code example

No response

Logs

No response

Additional information

https://docs.aiogram.dev/en/dev-3.x/api/methods/get_chat_member_count.html https://docs.aiogram.dev/en/dev-3.x/api/methods/get_chat_members_count.html

MassonNN avatar Jul 31 '22 11:07 MassonNN

It's not really a bug because one of the changes introduced in Bot API 5.3 was renaming getChatMembersCount to getChatMemberCount: https://core.telegram.org/bots/api-changelog#june-25-2021

evgfilim1 avatar Jul 31 '22 12:07 evgfilim1

It might be a good suggestion to remove backwards-compatibility methods from docs as 3.0 would be "brand new" version without any need for such methods, so I'm reopening it.

@aiogram/dev-team what do you think?

evgfilim1 avatar Jul 31 '22 12:07 evgfilim1

It seems redundant. I vote to remove old name

Olegt0rr avatar Aug 23 '22 06:08 Olegt0rr