Open miladkhodaverdi23 opened 3 months ago
Attention: Patch coverage is 45.45455%
with 24 lines
in your changes missing coverage. Please review.
Project coverage is 41.09%. Comparing base (
a24ba59
) to head (56337f3
). Report is 3 commits behind head on 3.x.
Files with missing lines | Patch % | Lines |
---|---|---|
src/Commands/CommandBus.php | 40.62% | 19 Missing :warning: |
src/Objects/Update.php | 55.55% | 4 Missing :warning: |
src/Commands/Command.php | 66.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request introduces a new feature to the Update class in the Telegram Bot SDK, allowing for the extraction of commands from
callback_query
updates. The enhancement adds agetText
method that processes and retrieves command strings fromcallback queries
, improving command handling efficiency.Changes New
getText
Method: Added to the Update class to handle command extraction fromcallback_query
updates.Usage: Example Keyboard You can use inline keyboards to send callback queries:
Example Command Usage Command class utilizing the new feature:
Please review the changes and provide any feedback or suggestions.
Thank you!