--- title: keyboardButtonSwitchInline --- ## Constructor: keyboardButtonSwitchInline [Back to constructors index](index.md) ### Attributes: | Name | Type | Required | |----------|:-------------:|---------:| |same\_peer|[Bool](../types/Bool.md) | Optional| |text|[string](../types/string.md) | Required| |query|[string](../types/string.md) | Required| ### Type: [KeyboardButton](../types/KeyboardButton.md) ### Example: ``` $keyboardButtonSwitchInline = ['_' => keyboardButtonSwitchInline', 'same_peer' => true, 'text' => string, 'query' => string, ]; ```