set_chat_paid_message_star_count


Description:

public async Ok set_chat_paid_message_star_count (int64 chat_id, int64 paid_message_star_count) throws TDLibError

Changes the amount of Telegram Stars that must be paid to send a message to a supergroup chat; requires can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages

Parameters:

chat_id

Identifier of the supergroup chat

paid_message_star_count

The new number of Telegram Stars that must be paid for each message that is sent to the supergroup chat unless the sender is an administrator of the chat; 0-getOption("paid_message_star_count_max"). The supergroup will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending