Skip to content

🔧 answer_chat_join_request_query

Use this method to answer a chat join request query.

âš™ī¸ Parameters

  • chat_id (int or str ): Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
  • user_id (int ): Unique identifier of the target user
  • query_id (str ): Unique identifier of the query to be answered
  • text (str ) (optional): Optional. Text of the answer
  • show_alert (bool ) (optional): Optional. If True, an alert will be shown to the user
  • url (str ) (optional): Optional. URL that will be opened by the user

📲 Returns

bool

📀 Examples

-đŸĒĢ Required Parameters

await bot.answer_chat_join_request_query(
    chat_id=your_chat_id_here,
    user_id=your_user_id_here,
    query_id=your_query_id_here
)

-🔋 All Parameters

await bot.answer_chat_join_request_query(
    chat_id=your_chat_id_here,
    user_id=your_user_id_here,
    query_id=your_query_id_here,
    text=your_text_here,
    show_alert=your_show_alert_here,
    url=your_url_here
)