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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor bot rewrite - v4.1 #40

Open
11 of 20 tasks
OctoNezd opened this issue Jul 2, 2021 · 0 comments
Open
11 of 20 tasks

Minor bot rewrite - v4.1 #40

OctoNezd opened this issue Jul 2, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@OctoNezd
Copy link
Contributor

OctoNezd commented Jul 2, 2021

The v4.1 is designed to do the following:

  • Split Context class into more classes to remove the mess
  • MessageContext
  • EditedMessageContext
  • InlineQueryContext
  • CallbackContext
  • ChosenInlineResultContext
  • 馃啎 EventContext (join, leave)
  • Introduce Filters
  • CommandHandler -> CommandFilter
  • MessageHandler -> ContextTypeFilter
  • permissions, my_permissions, not_admin -> PermissionsFilter
  • EntityFilter
  • ChatTypeFilter
  • InlineButtonFilter
  • AndFilter, OrFilter, NotFilter
  • Low-priority: RegexFilter
  • Low-priority: DomainFilter
  • Migrate to telegram.ext.ExtBot
  • Rewrite the inline keyboard system: drop the string part, implement class that allows putting in any function instead and keyword arguments.
  • Introduce webhooks

The 4.1 branch is scrapped rewrite. The active development is going in master, so I can scare the users with bot suddenly having seizure in front of them.

@OctoNezd OctoNezd changed the title Rewrite: Filter system Minor bot rewrite - v4.1 Jul 5, 2021
@OctoNezd OctoNezd pinned this issue Jul 5, 2021
@OctoNezd OctoNezd added the enhancement New feature or request label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant