Skip to content

Conversation

@Badiboy
Copy link
Collaborator

@Badiboy Badiboy commented Apr 21, 2025

Description

Fix states functions with new parameters

... and some minor issues.

... and some minor issues.
Copy link
Contributor

Copilot AI left a 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.

@Badiboy
Copy link
Collaborator Author

Badiboy commented Apr 21, 2025

@coder2020official , please take a look: I just cover warnings given by IDE.

@coder2020official
Copy link
Collaborator

LGTM

@Badiboy Badiboy merged commit b2da52a into eternnoir:master Apr 22, 2025
7 checks passed
Copy link

@hossen71 hossen71 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@chengying34748 chengying34748 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖]()

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

Successfully merging this pull request may close these issues.

5 participants