unban_chat_sender_chat¶
-
template<class Agent>
api_result<boolean_t, Agent&&> unban_chat_sender_chat(Agent &&agent, unban_chat_sender_chat_args_t args)¶
-
template<class Agent, class F>
void unban_chat_sender_chat(Agent &&agent, unban_chat_sender_chat_args_t args, F &&callback)¶ agent
is any object satisfying agent concept.callback
is any callable object acceptingexpected<boolean_t>
.Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.
-
struct unban_chat_sender_chat_args_t¶
Arguments that should be passed to
unban_chat_sender_chat()
.Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Unique identifier of the target sender chat