messages.SendEncryptedService
- class pyrogram.raw.functions.messages.SendEncryptedService
Sends a service message to a secret chat.
- Details:
Layer:
223ID:
32D439A4
- Parameters:
peer (
InputEncryptedChat) – Secret chat IDrandom_id (
int64-bit) – Unique client message ID required to prevent message resendingdata (
bytes) – TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization
- Returns:
TL Schema
messages.sendEncryptedService#32d439a4
peer:InputEncryptedChat
random_id:long
data:bytes
= messages.SentEncryptedMessage
Parameter Tree
SendEncryptedService
├── peer →
InputEncryptedChat│ └──
InputEncryptedChat│ ├── chat_id →
int│ └── access_hash →
long├── random_id →
long└── data →
bytesExample
await app.invoke(
SendEncryptedService(
peer=InputEncryptedChat(
chat_id=0,
access_hash=0
),
random_id=app.rnd_id(),
data=b"data",
)
)