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

Advanced menu handling #5

Merged
merged 28 commits into from
Jan 19, 2024
Merged

Advanced menu handling #5

merged 28 commits into from
Jan 19, 2024

Conversation

SyberiaK
Copy link
Collaborator

More fluent menu handling.

  • Bot can check for in what menu we currently are, where can we go and where would we go back to.
    • Can reuse same callback queries for different menus.
  • Handle 'listen callback queries' properly after a reload.
  • Made API much easier (using only one decorator per function instead of 3-4).

An unfortunate drawback is that menu ids are now strings, so we need to migrate the database (using Alembic) and drop a came_from_id column.

@SyberiaK SyberiaK self-assigned this Oct 30, 2023
@SyberiaK
Copy link
Collaborator Author

Finally made handling 'listen messages' properly after a reload.

@SyberiaK SyberiaK added the enhancement New feature or request label Dec 27, 2023
@SyberiaK
Copy link
Collaborator Author

It's pushin' time.

# Conflicts:
#	collectors/core.py
#	main.py
#	plugins/inline.py
#	utypes/bclient.py
#	utypes/states.py
@SyberiaK SyberiaK merged commit b578f2d into master Jan 19, 2024
1 check passed
@SyberiaK SyberiaK deleted the dev/advanced_menu_handling branch February 12, 2024 17:36
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

Successfully merging this pull request may close these issues.

1 participant