set_share_theme()¶
- async Client.set_share_theme()¶
Set the theme of the page shown when the current user or a channel is shared.
Pass nothing to go back to the default theme.
Usable by Users Bots- Parameters:
backdrop_id (
int, optional) – Identifier of the backdrop, seeget_share_theme_backdrops().emojis (List of
int|str, optional) – Emojis to show on the backdrop: emoji (str) or custom emoji identifiers (int).gift_id (
str, optional) – Unique identifier of an owned gift to take the theme from. Can’t be used together with backdrop_id or emojis.chat_id (
int|str, optional) – Unique identifier (int) or username (str) of a channel to set the theme of. Defaults to the current user.
- Returns:
bool– On success, True is returned.
Example
await app.set_share_theme(backdrop_id=49, emojis=["🔥", 5875309033427620643]) await app.set_share_theme(gift_id="123456") await app.set_share_theme()