Skip to content

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

@WubbaLubbaDubDubDev

Description

@WubbaLubbaDubDubDev

Checklist

  • I believe the idea is awesome and would benefit the framework
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions