start_bot()#

Client.start_bot()#

Start bot

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier of the bot you want to be started. You can specify a @username (str) or a bot ID (int).

  • param (str) – Text of the deep linking parameter (up to 64 characters). Defaults to “” (empty string).

Returns:

Message – On success, the sent message is returned.

Example

# Start bot
await app.start_bot("pyrogrambot")

# Start bot with param
await app.start_bot("pyrogrambot", "ref123456")