messages.SendEncrypted

class pyrogram.raw.functions.messages.SendEncrypted

Sends a text message to a secret chat.

Details:
  • Layer: 187

  • ID: 44FA7A15

Parameters:
  • peer (InputEncryptedChat) – Secret chat ID

  • random_id (int 64-bit) – Unique client message ID, necessary to avoid message resending

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

  • silent (bool, optional) – Send encrypted message without a notification

Returns:

messages.SentEncryptedMessage