get_chat_menu_button¶
-
template<class Agent>
api_result<menu_button_t, Agent&&> get_chat_menu_button(Agent &&agent, get_chat_menu_button_args_t args)¶
-
template<class Agent, class F>
void get_chat_menu_button(Agent &&agent, get_chat_menu_button_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<menu_button_t>
.Use this method to get the current value of the bot’s menu button in a private chat, or the default menu button. Returns MenuButton on success.
-
struct get_chat_menu_button_args_t¶
Arguments that should be passed to
get_chat_menu_button()
.-
optional_t<integer_t> chat_id¶
Unique identifier for the target private chat. If not specified, default bot’s menu button will be returned
-
optional_t<integer_t> chat_id¶