ChatSettings

class pyrogram.types.ChatSettings

Peer/chat settings returned by get_chat_settings().

Parameters:
  • report_spam (bool) – Whether the user can report the peer for spam.

  • add_contact (bool) – Whether the current user can add the peer as contact.

  • block_contact (bool) – Whether the current user can block the peer.

  • share_contact (bool) – Whether the current user can share the peer’s contact.

  • need_contacts_exception (bool) – Whether this user must be an exception in the contacts privacy settings.

  • report_geo (bool) – Whether the location must be checked when reporting the peer.

  • autoarchived (bool) – Whether the chat was auto-archived.

  • invite_members (bool) – Whether the current user can invite members to this group.

  • request_chat_broadcast (bool) – Whether the join request is for a channel.

  • business_bot_paused (bool) – Whether the business bot is paused.

  • business_bot_can_reply (bool) – Whether the business bot can reply.

  • geo_distance (int, optional) – Distance from this user in meters.

  • request_chat_title (str, optional) – Title of the group/channel that invited the current user.

  • request_chat_date (int, optional) – Date the current user was invited to the group/channel.

  • business_bot_id (int, optional) – ID of the business bot managing this peer.

  • business_bot_manage_url (str, optional) – URL to manage the business bot.

  • charge_paid_message_stars (int, optional) – Number of stars to pay per message.

  • registration_month (str, optional) – Month of account registration (e.g. “January 2023”).

  • phone_country (str, optional) – Country of the phone number.

  • name_change_date (int, optional) – Timestamp of last name change.

  • photo_change_date (int, optional) – Timestamp of last profile photo change.