stop_poll¶
-
template<class Agent>
api_result<poll_t, Agent&&> stop_poll(Agent &&agent, stop_poll_args_t args)¶
-
template<class Agent, class F>
void stop_poll(Agent &&agent, stop_poll_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<poll_t>
.Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.
-
struct stop_poll_args_t¶
Arguments that should be passed to
stop_poll()
.Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Identifier of the original message with the poll
-
optional_t<inline_keyboard_markup_t> reply_markup¶
A JSON-serialized object for a new message inline keyboard.
-
optional_t<string_t> business_connection_id¶
Unique identifier of the business connection on behalf of which the message to be edited was sent
-
optional_t<inline_keyboard_markup_t> reply_markup¶