-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix states functions with new parameters #2473
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
Conversation
... and some minor issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates state and data management functions to support new parameters and adjusts function calls to match the updated signatures.
- Updated method signatures in both synchronous and asynchronous storage classes to include new optional parameters (business_connection_id, message_thread_id, and bot_id).
- Revised type hints in the asyncio context and updated function calls in telebot/async_telebot.py and telebot/init.py to use positional arguments for chat_id and state-related parameters.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| telebot/storage/base_storage.py | Updated state and data methods to support new optional parameters. |
| telebot/states/asyncio/context.py | Updated init type hint for the bot parameter. |
| telebot/asyncio_storage/base_storage.py | Updated async method signatures with additional optional parameters. |
| telebot/async_telebot.py | Updated calls to state functions and refined the poll options type. |
| telebot/init.py | Consistent updates to state function calls with new parameter handling. |
|
@coder2020official , please take a look: I just cover warnings given by IDE. |
|
LGTM |
hossen71
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chengying34748
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖]()
Description
Fix states functions with new parameters
... and some minor issues.