SendEncrypted

class pyrogram.raw.functions.messages.SendEncrypted

Sends a text message to a secret chat.

Details
  • Layer: 126

  • ID: 0x44fa7a15

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 – Contains info on message sent to an encrypted chat.