Skip to content

Added full support for the Bot API 9.2#1720

Merged
JrooTJunior merged 3 commits intodev-3.xfrom
feature/api-9.2
Aug 17, 2025
Merged

Added full support for the Bot API 9.2#1720
JrooTJunior merged 3 commits intodev-3.xfrom
feature/api-9.2

Conversation

@JrooTJunior
Copy link
Member

Added full support for the Bot API 9.2

@JrooTJunior JrooTJunior added the api Issues or new features of Bot API label Aug 17, 2025
@github-actions github-actions bot added the 3.x Issue or PR for stable 3.x version label Aug 17, 2025
@github-actions
Copy link

✔️ Changelog found.

Thank you for adding a description of the changes

@JrooTJunior JrooTJunior requested a review from Copilot August 17, 2025 15:34
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 adds comprehensive support for Telegram Bot API 9.2, specifically implementing suggested posts functionality for channel direct messages along with related channel management features.

  • Adds new types and methods for managing suggested posts in channel direct messages
  • Implements approval and decline functionality for suggested posts with payment handling
  • Updates existing methods to support direct messages topics and suggested post parameters
  • Enhances chat administrator rights with direct messages management capability

Reviewed Changes

Copilot reviewed 158 out of 162 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Tests Adds test coverage for new suggested post message types and approval/decline methods
Documentation Creates RST documentation files for all new suggested post types and methods
Types Implements suggested post related types (approved, declined, paid, refunded, etc.) and updates existing types
Methods Adds approve/decline suggested post methods and updates send methods with direct messages support
Enums Adds new content types for suggested post states

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


class SuggestedPostPrice(TelegramObject):
"""
Desribes price of a suggested post.
Copy link

Copilot AI Aug 17, 2025

Choose a reason for hiding this comment

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

There is a typo in the docstring. 'Desribes' should be 'Describes'.

Suggested change
Desribes price of a suggested post.
Describes price of a suggested post.

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Aug 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ddcedad) to head (c56da46).
⚠️ Report is 1 commits behind head on dev-3.x.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           dev-3.x     #1720    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          578       589    +11     
  Lines        13531     13783   +252     
==========================================
+ Hits         13531     13783   +252     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
aiogram/client/bot.py 100.00% <100.00%> (ø)
aiogram/enums/content_type.py 100.00% <100.00%> (ø)
aiogram/methods/__init__.py 100.00% <100.00%> (ø)
aiogram/methods/approve_suggested_post.py 100.00% <100.00%> (ø)
aiogram/methods/copy_message.py 100.00% <100.00%> (ø)
aiogram/methods/copy_messages.py 100.00% <100.00%> (ø)
aiogram/methods/decline_suggested_post.py 100.00% <100.00%> (ø)
aiogram/methods/delete_message.py 100.00% <ø> (ø)
aiogram/methods/forward_message.py 100.00% <100.00%> (ø)
aiogram/methods/forward_messages.py 100.00% <100.00%> (ø)
... and 52 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JrooTJunior JrooTJunior merged commit ab8af77 into dev-3.x Aug 17, 2025
23 checks passed
@JrooTJunior JrooTJunior deleted the feature/api-9.2 branch August 31, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.x Issue or PR for stable 3.x version api Issues or new features of Bot API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants