messages.SetTyping

class pyrogram.raw.functions.messages.SetTyping

Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.

Details:
  • Layer: 227

  • ID: 58943EE2

Parameters:
  • peer (InputPeer) – Target user or group

  • action (SendMessageAction) – Type of action

  • top_msg_id (int 32-bit, optional) – Topic ID

Returns:

bool

TL Schema

messages.setTyping#58943ee2
flags:#
peer:InputPeer
top_msg_id:flags.0?int
action:SendMessageAction

= Bool

Parameter Tree

SetTyping
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── top_msg_idint (optional)
└── actionSendMessageAction
│ └── progressint
│ └── progressint
│ └── progressint
│ └── progressint
│ └── progressint
│ └── progressint
│ ├── emoticonstring
│ ├── msg_idint
│ └── interactionDataJSON
│ └── DataJSON
│ └── datastring
│ └── emoticonstring
│ ├── random_idlong
│ └── textTextWithEntities
│ └── TextWithEntities
│ ├── textstring
│ └── entitiesVector < MessageEntity >
│ ├── MessageEntityUnknown
│ ├── MessageEntityMention
│ ├── MessageEntityHashtag
│ ├── MessageEntityUrl
│ ├── MessageEntityEmail
│ ├── MessageEntityBold
│ ├── MessageEntityItalic
│ ├── MessageEntityCode
│ ├── MessageEntityPre
│ ├── MessageEntityTextUrl
│ ├── MessageEntityPhone
│ ├── MessageEntityCashtag
│ ├── MessageEntityStrike
│ ├── MessageEntityBankCard
│ ├── MessageEntitySpoiler
│ ├── random_idlong
│ └── rich_messageInputRichMessage
│ ├── InputRichMessage
│ │ ├── rtltrue (optional)
│ │ ├── noautolinktrue (optional)
│ │ ├── blocksVector < 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
│ │ ├── photosVector < InputPhoto > (optional)
│ │ │ ├── InputPhotoEmpty
│ │ │ └── InputPhoto
│ │ ├── documentsVector < InputDocument > (optional)
│ │ │ ├── InputDocumentEmpty
│ │ │ └── InputDocument
│ │ └── usersVector < InputUser > (optional)
│ │ ├── InputUserEmpty
│ │ ├── InputUserSelf
│ │ ├── InputUser
│ │ └── InputUserFromMessage
│ ├── InputRichMessageHTML
│ │ ├── rtltrue (optional)
│ │ ├── noautolinktrue (optional)
│ │ ├── htmlstring
│ │ └── filesVector < InputRichFile > (optional)
│ │ ├── InputRichFilePhoto
│ │ └── InputRichFileDocument
│ ├── rtltrue (optional)
│ ├── noautolinktrue (optional)
│ ├── markdownstring
│ └── filesVector < InputRichFile > (optional)
│ ├── InputRichFilePhoto
│ └── InputRichFileDocument
├── random_idlong
└── rich_messageRichMessage
└── RichMessage
├── rtltrue (optional)
├── parttrue (optional)
├── blocksVector < 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
├── photosVector < Photo >
│ ├── PhotoEmpty
│ └── Photo
└── documentsVector < Document >
├── DocumentEmpty
└── Document

Example

await app.invoke(
    SetTyping(
        peer=await app.resolve_peer(chat_id),
        top_msg_id=0,
        action=SendMessageTypingAction(),
    )
)