approveChatJoinRequest#
Returns: bool
- class aiogram.methods.approve_chat_join_request.ApproveChatJoinRequest(*, chat_id: Union[int, str], user_id: int, **extra_data: Any)[source]#
Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns
True
on success.Source: https://core.telegram.org/bots/api#approvechatjoinrequest
- chat_id: Union[int, str]#
Unique identifier for the target chat or username of the target channel (in the format
@channelusername
)
- user_id: int#
Unique identifier of the target user
Usage#
As bot method#
result: bool = await bot.approve_chat_join_request(...)
Method as object#
Imports:
from aiogram.methods.approve_chat_join_request import ApproveChatJoinRequest
alias:
from aiogram.methods import ApproveChatJoinRequest
With specific bot#
result: bool = await bot(ApproveChatJoinRequest(...))
As reply into Webhook in handler#
return ApproveChatJoinRequest(...)