Inherits Function.
Sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right.
Returns object_ptr<Ok>.
Public Fields | |
int53 | chat_id_ |
Chat identifier. | |
object_ptr< InputBackground > | background_ |
The input background to use; pass null to create a new filled or chat theme background. | |
object_ptr< BackgroundType > | type_ |
Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn't supported for private and secret chats. Use chatBoostLevelFeatures.chat_theme_background_count and chatBoostLevelFeatures.can_set_custom_background to check whether the background type can be set in the boosted chat. | |
int32 | dark_theme_dimming_ |
Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background. | |
bool | only_for_self_ |
Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn't of the type inputBackgroundPrevious. | |
Public Types | |
using | ReturnType = object_ptr< ok > |
Typedef for the type returned by the function. | |
Public Instance Methods | |
setChatBackground () | |
setChatBackground (int53 chat_id_, object_ptr< InputBackground > &&background_, object_ptr< BackgroundType > &&type_, int32 dark_theme_dimming_, bool only_for_self_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = 246727678 |
Identifier uniquely determining a type of the object. | |
Default constructor for a function, which sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right.
Returns object_ptr<Ok>.
setChatBackground | ( | int53 | chat_id_, |
object_ptr< InputBackground > && | background_, | ||
object_ptr< BackgroundType > && | type_, | ||
int32 | dark_theme_dimming_, | ||
bool | only_for_self_ | ||
) |
Creates a function, which sets the background in a specific chat. Supported only in private and secret chats with non-deleted users, and in chats with sufficient boost level and can_change_info administrator right.
Returns object_ptr<Ok>.
[in] | chat_id_ | Chat identifier. |
[in] | background_ | The input background to use; pass null to create a new filled or chat theme background. |
[in] | type_ | Background type; pass null to use default background type for the chosen background; backgroundTypeChatTheme isn't supported for private and secret chats. Use chatBoostLevelFeatures.chat_theme_background_count and chatBoostLevelFeatures.can_set_custom_background to check whether the background type can be set in the boosted chat. |
[in] | dark_theme_dimming_ | Dimming of the background in dark themes, as a percentage; 0-100. Applied only to Wallpaper and Fill types of background. |
[in] | only_for_self_ | Pass true to set background only for self; pass false to set background for all chat users. Always false for backgrounds set in boosted chats. Background can be set for both users only by Telegram Premium users and if set background isn't of the type inputBackgroundPrevious. |
|
finalvirtual |