Layer 227
UpdateShortChatMessage
Shortened constructor containing info on one new incoming text message from a chat
constructor
updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Out | flags .1? true | Whether the message is outgoing |
| Mentioned | flags .4? true | Whether we were mentioned in this message |
| MediaUnread | flags .5? true | Whether the message contains some unread mentions |
| Silent | flags .13? true | If true, the message is a silent message, no notifications should be triggered |
| Id | int | ID of the message |
| FromId | long | ID of the sender of the message |
| ChatId | long | ID of the chat where the message was sent |
| Message | string | Message |
| Pts | int | PTS |
| PtsCount | int | PTS count |
| Date | int | date |
| FwdFrom | flags .2? MessageFwdHeader | Info about a forwarded message |
| ViaBotId | flags .11? long | Info about the inline bot used to generate this message |
| ReplyTo | flags .3? MessageReplyHeader | Reply (thread) information |
| Entities | flags .7? Vector < MessageEntity > | Entities for styled text |
| TtlPeriod | flags .25? int | Time To Live of the message, once update Short Chat Message. date+update Short Chat Message. ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. |
Returns
UpdatesGogram Example
// Creating UpdateShortChatMessage constructor obj := &tg.UpdateShortChatMessage{ Out: nil, Mentioned: nil, MediaUnread: nil, Silent: nil, Id: 42, FromId: int64(1234567890), // ... more required fields }