Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new_chat_members #81

Open
Kyle2142 opened this issue Aug 28, 2020 · 0 comments
Open

Add support for new_chat_members #81

Kyle2142 opened this issue Aug 28, 2020 · 0 comments

Comments

@Kyle2142
Copy link

The singular field has been deprecated for a long time (https://core.telegram.org/bots/api-changelog#may-18-2017) and has been removed from the documentation.
Please add support for the plural version.
Currently I do

@bot.handle('new_chat_member')
def example(chat, new_chat_member):
  new_chat_members = chat.message['new_chat_members']
  for new_chat_member in new_chat_members:
    foobar

but if telegram removes the field, all of us will no longer be able to receive these updates.
I think I can just make the decorator argument plural, but I am unsure.

I imagine this is just adding the plural version to the message types constant, but again I am unsure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant