Layer 220
MessagesSetEncryptedTyping
Send typing event by the current user to a secret chat.
method
Users
messages.setEncryptedTyping#791451ed peer:InputEncryptedChat typing:Bool = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputEncryptedChat | Secret chat ID |
| Typing | Bool | Typing. Possible values: (bool True), if the user started typing and more than 5 seconds have passed since the last request (bool False), if the user stopped typing |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
Gogram Example
// MessagesSetEncryptedTyping - positional arguments result, err := client.MessagesSetEncryptedTyping(&tg.InputEncryptedChat{}, true) if err != nil { // handle error } // result is *tg.Bool