UpdateUserTyping

class pyrogram.raw.types.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 of Update.

Details:
  • Layer: 223

  • ID: 2A17BF5C

Parameters:
  • user_id (int 64-bit) – User id

  • action (SendMessageAction) – Action type

  • top_msg_id (int 32-bit, optional)

TL Schema

updateUserTyping#2a17bf5c
flags:#
user_id:long
top_msg_id:flags.0?int
action:SendMessageAction

= Update

Parameter Tree

UpdateUserTyping
├── user_idlong
├── top_msg_idint (optional)
└── actionSendMessageAction
│ └── progressint
│ └── progressint
│ └── progressint
│ └── progressint
│ └── progressint
│ └── progressint
│ ├── emoticonstring
│ ├── msg_idint
│ └── interactionDataJSON
│ └── DataJSON
│ └── datastring
│ └── emoticonstring
├── random_idlong
└── textTextWithEntities

Example

UpdateUserTyping(
    user_id=0,
    action=SendMessageTypingAction(),
)