messages.SetEncryptedTyping

class pyrogram.raw.functions.messages.SetEncryptedTyping

Send typing event by the current user to a secret chat.

Details:
  • Layer: 223

  • ID: 791451ED

Parameters:
  • peer (InputEncryptedChat) – Secret chat ID

  • typing (bool) – Typing.Possible values:(boolTrue), if the user started typing and more than 5 seconds have passed since the last request(boolFalse), if the user stopped typing

Returns:

bool

TL Schema

messages.setEncryptedTyping#791451ed
peer:InputEncryptedChat
typing:Bool

= Bool

Parameter Tree

SetEncryptedTyping
├── peerInputEncryptedChat
│ └── InputEncryptedChat
│ ├── chat_idint
│ └── access_hashlong
└── typingBool

Example

await app.invoke(
    SetEncryptedTyping(
        peer=InputEncryptedChat(
            chat_id=0,
            access_hash=0
        ),
        typing=True,
    )
)