get_chat_sponsored_messages()#
- Client.get_chat_sponsored_messages()#
Returns sponsored messages to be shown in a chat; for channel chats only.
Usable by ✅ Users ❌ Bots- Parameters:
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat.- Returns:
List of
SponsoredMessage
– a list of sponsored messages is returned.
Example
# Get a sponsored messages sm = await app.get_chat_sponsored_messages(chat_id) print(sm)