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

Shortcut for all possible update types #1159

Open
karb0f0s opened this issue Dec 7, 2022 · 1 comment
Open

Shortcut for all possible update types #1159

karb0f0s opened this issue Dec 7, 2022 · 1 comment

Comments

@karb0f0s
Copy link
Member

karb0f0s commented Dec 7, 2022

By default empty allowed_updates allows bot to receive all update types except chat_member (default).
In many cases chat_member is preferable along with other update types.
We can provide pre-populated array of all possible update types out of the box.

@karb0f0s
Copy link
Member Author

karb0f0s commented Aug 24, 2023

UpdateType[] AllUpdateTypes = Enum.GetValues<UpdateType>()[1..];

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

No branches or pull requests

1 participant