Skip to content

API 9.1 Checklist* classes #4848

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

Merged
merged 10 commits into from
Jul 8, 2025
Merged

API 9.1 Checklist* classes #4848

merged 10 commits into from
Jul 8, 2025

Conversation

Bibo-Joshi
Copy link
Member

No description provided.

@Bibo-Joshi Bibo-Joshi added the ⚙️ bot-api affected functionality: bot-api label Jul 3, 2025
@Bibo-Joshi Bibo-Joshi mentioned this pull request Jul 3, 2025
16 tasks
@Bibo-Joshi Bibo-Joshi requested a review from Copilot July 5, 2025 12:02
Copy link

@Copilot 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

Adds support for Bot API 9.1 “Checklist” types across the library, including models, filters, docs, and tests.

  • Introduce new TelegramObject classes: Checklist, ChecklistTask, ChecklistTasksAdded, ChecklistTasksDone
  • Expose checklist fields in Message and ExternalReplyInfo, update filters and changelog
  • Add comprehensive tests and Sphinx docs for the new classes

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_reply.py Added checklist to ExternalReplyInfo tests
tests/test_message.py Included checklist and tasks fixtures in message tests
tests/test_checklists.py New tests for Checklist, ChecklistTask, and service messages
tests/ext/test_filters.py Tests for filters.CHECKLIST and task‐based status filters
src/telegram/ext/filters.py Added CHECKLIST and status filters for checklist events
src/telegram/_reply.py Exposed checklist in ExternalReplyInfo
src/telegram/_message.py Added checklist* fields to Message
src/telegram/_checklists.py Implemented Checklist models
src/telegram/init.py Public exports for new classes
docs/source/telegram.checklist*.rst Documentation for Checklist and related classes
docs/source/telegram.at-tree.rst Added checklist types to the type tree
changes/unreleased/4847*.toml Updated changelog for checklist features
Comments suppressed due to low confidence (1)

docs/source/telegram.at-tree.rst:35

  • [nitpick] Add a dedicated documentation file for ChecklistTask (e.g., telegram.checklisttask.rst) so its members are fully documented alongside the other checklist types.
    telegram.checklisttask

@Bibo-Joshi Bibo-Joshi marked this pull request as ready for review July 5, 2025 12:27
@Bibo-Joshi Bibo-Joshi requested review from harshil21 and aelkheir July 5, 2025 12:28
@Bibo-Joshi Bibo-Joshi mentioned this pull request Jul 5, 2025
25 tasks
Copy link
Member

@aelkheir aelkheir left a comment

Choose a reason for hiding this comment

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

Changes look good 🎊! Only a few docs fixes.

Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

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

just a single comment :)

@Bibo-Joshi Bibo-Joshi merged commit a9cbca6 into api-9.1 Jul 8, 2025
44 of 47 checks passed
@Bibo-Joshi Bibo-Joshi deleted the api-9.1-checklist- branch July 8, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ bot-api affected functionality: bot-api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy