InlineBotSwitchPM

class pyrogram.raw.types.InlineBotSwitchPM

The bot requested the user to message them in private

Constructor of InlineBotSwitchPM.

Details:
  • Layer: 223

  • ID: 3C20629F

Parameters:
  • text (str) – Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty)

  • start_param (str) – The parameter for the /start parameter

TL Schema

inlineBotSwitchPM#3c20629f
text:string
start_param:string

= InlineBotSwitchPM

Parameter Tree

InlineBotSwitchPM
├── textstring
└── start_paramstring

Example

InlineBotSwitchPM(
    text="Open",
    start_param="text",
)