get_requirements_to_contact()¶
- async Client.get_requirements_to_contact()¶
Check whether we can write to the specified users.
Used to implement bulk checks for Premium-only messages and paid messages.
Usable by Users Bots- Parameters:
user_ids (
int|str| Iterable ofintorstr) – A list of User identifiers (id or username) or a single user id/username.- Returns:
List of
RequirementToContact– List of requirements to contact.
Example
requirements = await app.get_requirements_to_contact(user_id)