restrict_sponsored_messages()

async Client.restrict_sponsored_messages()

Restrict sponsored messages in a channel.

Usable by Users Bots
Parameters:

restricted (bool) – Whether sponsored messages are restricted

Returns:

Message

Example

await app.restrict_sponsored_messages(chat_id, ...)