SendEncryptedService

---functions---
messages.sendEncryptedService#32d439a4 peer:InputEncryptedChat random_id:long data:bytes = messages.SentEncryptedMessage

Returns

messages.SentEncryptedMessage

Parameters

peerInputEncryptedChatrequired
random_idlongrequired
databytesrequired

Example

The examples below use placeholder values. Replace them with real data before running the code.

Example
import asyncio
import random
from ferogram import Client, raw

app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")

async def main():
    await app.start()
    result = await app.raw.messages.SendEncryptedService(
        peer=raw.types.InputEncryptedChat(chat_id=0, access_hash=0),
        random_id=random.randrange(-2**63, 2**63),
        data=b'arbitrary\x7f data'
    )
    print(result)

asyncio.run(main())