messages.SendEncryptedService#

class pyrogram.raw.functions.messages.SendEncryptedService#

Sends a service message to a secret chat.

Details:
  • Layer: 158

  • ID: 32D439A4

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