send_encrypted_service()¶
- async Client.send_encrypted_service()¶
Send a service message to a secret chat.
Usable by Users Bots- Parameters:
peer (
InputEncryptedChat) – The secret chat to send to.random_id (
int) – Random ID for deduplication.data (
bytes) – The encrypted service message bytes.
- Returns:
SentEncryptedMessage– The sent message info.
Example
await app.send_encrypted_service(peer, random_id=123, data=b"...")