Layer 224
UpdateUserTyping
The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing
constructor
updateUserTyping#2a17bf5c flags:# user_id:long top_msg_id:flags.0?int action:SendMessageAction = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| UserId | long | User id |
| TopMsgId | flags.0?int | If set, this notification was sent within a bot forum topic. |
| Action | SendMessageAction | Action type |
Returns
UpdateGogram Example
// Creating UpdateUserTyping constructor obj := &tg.UpdateUserTyping{ UserId: int64(1234567890), Action: &tg.SendMessageAction{}, // Optional fields: // TopMsgId: 42, }