UpdateChatUserTyping

class pyrogram.raw.types.UpdateChatUserTyping

The user is preparing a message in a group; 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: 227

  • ID: 83487AF0

Parameters:
  • chat_id (int 64-bit) – Group id

  • from_id (Peer) – Peer that started typing (can be the chat itself, in case of anonymous admins).

  • action (SendMessageAction) – Type of action

TL Schema

updateChatUserTyping#83487af0
chat_id:long
from_id:Peer
action:SendMessageAction

= Update

Parameter Tree

UpdateChatUserTyping
├── chat_id → long
├── from_id → Peer
│ ├── PeerUser
│ │ └── user_id → long
│ ├── PeerChat
│ │ └── chat_id → long
│ └── PeerChannel
│ └── channel_id → long
└── action → SendMessageAction
│ └── progress → int
│ └── progress → int
│ └── progress → int
│ └── progress → int
│ └── progress → int
│ └── progress → int
│ ├── emoticon → string
│ ├── msg_id → int
│ └── interaction → DataJSON
│ └── DataJSON
│ └── data → string
│ └── emoticon → string
│ ├── random_id → long
│ └── text → TextWithEntities
│ └── TextWithEntities
│ ├── text → string
│ └── entities → Vector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
│ ├── random_id → long
│ └── rich_message → InputRichMessage
│ ├── InputRichMessage
│ │ ├── rtl → true (optional)
│ │ ├── noautolink → true (optional)
│ │ ├── blocks → Vector < PageBlock >
│ │ │ ├── PageBlockUnsupported
│ │ │ ├── PageBlockTitle
│ │ │ ├── PageBlockSubtitle
│ │ │ ├── PageBlockAuthorDate
│ │ │ ├── PageBlockHeader
│ │ │ ├── PageBlockSubheader
│ │ │ ├── PageBlockParagraph
│ │ │ ├── PageBlockPreformatted
│ │ │ ├── PageBlockFooter
│ │ │ ├── PageBlockDivider
│ │ │ ├── PageBlockAnchor
│ │ │ ├── PageBlockList
│ │ │ ├── PageBlockBlockquote
│ │ │ ├── PageBlockPullquote
│ │ │ ├── PageBlockPhoto
│ │ │ ├── PageBlockVideo
│ │ │ ├── PageBlockCover
│ │ │ ├── PageBlockEmbed
│ │ │ ├── PageBlockEmbedPost
│ │ │ ├── PageBlockCollage
│ │ │ ├── PageBlockSlideshow
│ │ │ ├── PageBlockChannel
│ │ │ ├── PageBlockAudio
│ │ │ ├── PageBlockKicker
│ │ │ ├── PageBlockTable
│ │ │ ├── PageBlockOrderedList
│ │ │ ├── PageBlockDetails
│ │ │ ├── PageBlockRelatedArticles
│ │ │ ├── PageBlockMap
│ │ │ ├── PageBlockHeading1
│ │ │ ├── PageBlockHeading2
│ │ │ ├── PageBlockHeading3
│ │ │ ├── PageBlockHeading4
│ │ │ ├── PageBlockHeading5
│ │ │ ├── PageBlockHeading6
│ │ │ ├── PageBlockMath
│ │ │ ├── PageBlockThinking
│ │ │ ├── InputPageBlockMap
│ │ │ └── PageBlockBlockquoteBlocks
│ │ ├── photos → Vector < InputPhoto > (optional)
│ │ │ ├── InputPhotoEmpty
│ │ │ └── InputPhoto
│ │ ├── documents → Vector < InputDocument > (optional)
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ └── users → Vector < InputUser > (optional)
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── InputRichMessageHTML
│ │ ├── rtl → true (optional)
│ │ ├── noautolink → true (optional)
│ │ ├── html → string
│ │ └── files → Vector < InputRichFile > (optional)
│ │ ├── InputRichFilePhoto
│ │ └── InputRichFileDocument
│ ├── rtl → true (optional)
│ ├── noautolink → true (optional)
│ ├── markdown → string
│ └── files → Vector < InputRichFile > (optional)
│ ├── InputRichFilePhoto
│ └── InputRichFileDocument
├── random_id → long
└── rich_message → RichMessage
└── RichMessage
├── rtl → true (optional)
├── part → true (optional)
├── blocks → Vector < PageBlock >
│ ├── PageBlockUnsupported
│ ├── PageBlockTitle
│ ├── PageBlockSubtitle
│ ├── PageBlockAuthorDate
│ ├── PageBlockHeader
│ ├── PageBlockSubheader
│ ├── PageBlockParagraph
│ ├── PageBlockPreformatted
│ ├── PageBlockFooter
│ ├── PageBlockDivider
│ ├── PageBlockAnchor
│ ├── PageBlockList
│ ├── PageBlockBlockquote
│ ├── PageBlockPullquote
│ ├── PageBlockPhoto
│ ├── PageBlockVideo
│ ├── PageBlockCover
│ ├── PageBlockEmbed
│ ├── PageBlockEmbedPost
│ ├── PageBlockCollage
│ ├── PageBlockSlideshow
│ ├── PageBlockChannel
│ ├── PageBlockAudio
│ ├── PageBlockKicker
│ ├── PageBlockTable
│ ├── PageBlockOrderedList
│ ├── PageBlockDetails
│ ├── PageBlockMap
│ ├── PageBlockHeading1
│ ├── PageBlockHeading2
│ ├── PageBlockHeading3
│ ├── PageBlockHeading4
│ ├── PageBlockHeading5
│ ├── PageBlockHeading6
│ ├── PageBlockMath
│ ├── PageBlockThinking
│ ├── InputPageBlockMap
├── photos → Vector < Photo >
│ ├── PhotoEmpty
│ └── Photo
└── documents → Vector < Document >
├── DocumentEmpty
└── Document

Example

UpdateChatUserTyping(
    chat_id=0,
    from_id=PeerUser(user_id=0),
    action=SendMessageTypingAction(),
)