pyrofork icon indicating copy to clipboard operation
pyrofork copied to clipboard

[Feature Request] Add support for paid messages (paid_message_star_count, paid_message_stars, ALLOW_PAYMENT_REQUIRED)

Open WubbaLubbaDubDubDev opened this issue 4 months ago • 0 comments

Checklist

  • [x] I believe the idea is awesome and would benefit the framework
  • [x] I have searched in the issue tracker for similar requests, including closed ones

Description

Hi! Telegram recently introduced paid messages in chats, but this feature is not yet supported in pyrofork.

I suggest adding:

paid_message_star_count to the Chat object – indicates that the chat has paid messaging enabled and how many stars are required.

paid_message_stars to the Message object – shows how many stars were used to send/view a message.

support for the 406 ALLOW_PAYMENT_REQUIRED exception – returned when attempting to send a message in a paid chat without payment.

This functionality is already implemented in PyroTgFork, and it would be great to see it included here as well.

Thanks for maintaining the project!

WubbaLubbaDubDubDev avatar Aug 10 '25 20:08 WubbaLubbaDubDubDev