SendEncryptedService

class pyrogram.raw.functions.messages.SendEncryptedService

Sends a service message to a secret chat.

Details
  • Layer: 122

  • ID: 0x32d439a4

Parameters
  • peer (InputEncryptedChat) – Secret chat ID.

  • random_id (int 64-bit) – Unique client message ID required to prevent message resending.

  • data (bytes) – TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization.

Returns

messages.SentEncryptedMessage – Contains info on message sent to an encrypted chat.