peyk.platforms.telegram.methods.answer_chat_join_request_query¶
- async peyk.platforms.telegram.methods.answer_chat_join_request_query(self, chat_join_request_query_id: str | None = None, result: str | None = None, *, chat_id: int | None = None, user_id: int | None = None, query_id: str | None = None) bool¶
Use this method to process a received chat join request query. Returns True on success.
- Parameters:
chat_join_request_query_id – Unique identifier of the join request query
result – Result of the query. Must be either ‘approve’ to allow the user to join the chat, ‘decline’ to disallow the user to join the chat, or ‘queue’ to leave the decision to other administrators.
chat_id – Value accepted by this operation.
user_id – Value accepted by this operation.
query_id – Value accepted by this operation.
- Returns:
Result returned by Telegram on successful execution.
- Return type:
bool