verify_chat

template<class Agent>
api_result<boolean_t, Agent&&> verify_chat(Agent &&agent, verify_chat_args_t args)
template<class Agent, class F>
void verify_chat(Agent &&agent, verify_chat_args_t args, F &&callback)

agent is any object satisfying agent concept.

callback is any callable object accepting expected<boolean_t>.

Verifies a chat on behalf of the organization which is represented by the bot. Returns True on success.

struct verify_chat_args_t

Arguments that should be passed to verify_chat().

variant_t<integer_t, string_t> chat_id

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

optional_t<string_t> custom_description

Custom description for the verification; 0-70 characters. Must be empty if the organization isn’t allowed to provide a custom verification description.