Skip to content

First High-Level Operation

After signing in, send a message to a chat where the account can post:

message = await client.send_message("@your_test_chat", "Hello from miniproto")
print(message.id)

send_message() accepts a username, a normalized Peer, or a numeric ID for a peer whose access information is already available to the client. It returns Telegram’s response as a Message. To receive an early transport receipt as well, pass quick_ack_callback and still await the call for its result. Use raw requests for Telegram methods without a high-level helper.