get_my_default_administrator_rights¶
-
template<class Agent>
api_result<chat_administrator_rights_t, Agent&&> get_my_default_administrator_rights(Agent &&agent, get_my_default_administrator_rights_args_t args)¶
-
template<class Agent, class F>
void get_my_default_administrator_rights(Agent &&agent, get_my_default_administrator_rights_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<chat_administrator_rights_t>
.Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
-
struct get_my_default_administrator_rights_args_t¶
Arguments that should be passed to
get_my_default_administrator_rights()
.-
optional_t<boolean_t> for_channels¶
Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned.
-
optional_t<boolean_t> for_channels¶