Raw.KeyboardButtonSwitchInline
Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot’s username and the specified inline query in the input field.
keyboardButtonSwitchInline#93b9fbb5 flags:# same_peer:flags.0?true text:string query:string peer_types:flags.1?Vector<InlineQueryPeerType> = KeyboardButton;
export namespace Raw {
export class KeyboardButtonSwitchInline {
constructor(params: {
samePeer?: boolean;
text: string;
query: string;
peerTypes?: Array<Raw.TypeInlineQueryPeerType>;
}) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x93b9fbb5
Property
samePeer
: boolean or undefinedIf set, pressing the button will insert the bot’s username and the specified inline query in the current chat’s input field.
text
: stringButton label
query
: stringThe inline query to use
peerTypes
: Array of Raw.TypeInlineQueryPeerType or undefinedFilter to use when selecting chats.