Layer 220
MessageActionSetChatWallPaper
The wallpaper of the current chat was changed.
constructor
messageActionSetChatWallPaper#5060a3f4 flags:# same:flags.0?true for_both:flags.1?true wallpaper:WallPaper = MessageAction;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Same | flags.0?true | If set, indicates the user applied a wallpaper previously sent by the other user in a message Action Set Chat Wall Paper message. |
| ForBoth | flags.1?true | If set, indicates the wallpaper was forcefully applied for both sides, without explicit confirmation from the other side. If the message is incoming, and we did not like the new wallpaper the other user has chosen for us, we can re-set our previous wallpaper just on our side, by invoking messages. set Chat Wall Paper, providing only the revert flag (and obviously the peer parameter). |
| Wallpaper | WallPaper | New wallpaper |
Returns
MessageActionGogram Example
// Creating MessageActionSetChatWallPaper constructor obj := &tg.MessageActionSetChatWallPaper{ Wallpaper: &tg.WallPaper{}, // Optional fields: // Same: true, // ForBoth: true, }