pyrofork
pyrofork copied to clipboard
[Feature Request] Add support for paid messages (paid_message_star_count, paid_message_stars, ALLOW_PAYMENT_REQUIRED)
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!