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:
223ID:
58943EE2
- Parameters:
peer (
InputPeer) – Target user or groupaction (
SendMessageAction) – Type of actiontop_msg_id (
int32-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
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long├── top_msg_id →
int (optional)└── 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└──
TextWithEntitiesExample
await app.invoke(
SetTyping(
peer=await app.resolve_peer(chat_id),
top_msg_id=0,
action=SendMessageTypingAction(),
)
)