ChatSettings¶
- class pyrogram.types.ChatSettings¶
A list of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar.
- Parameters:
can_report_spam (
bool, optional) – True, if we can still report this chat for spam.can_add_contact (
bool, optional) – True, if we can add this user as contact.can_block_contact (
bool, optional) – True, if we can block this user.can_share_contact (
bool, optional) – True, if we can share user’s contact.can_report_geo (
bool, optional) – True, if we can report a geogroup as irrelevant for this location.can_invite_members (
bool, optional) – True, if this is a recently created group chat to which new members can be invited.is_autoarchived (
bool, optional) – True, if this chat was automatically archived according to privacy settings and can be unarchived.is_business_bot_paused (
bool, optional) – True, if the business bot is currently paused.is_business_bot_can_reply (
bool, optional) – True, if the business bot can reply to messages.need_contacts_exception (
bool, optional) – True, if special exception for contacts is needed.request_chat_broadcast (
bool, optional) – This flag is set if request_chat_title and request_chat_date fields are set and the join request is related to a channel (otherwise if only the request fields are set, the join request is related to a chat).geo_distance (
int, optional) – Distance in meters between us and this chat.request_chat_title (
str, optional) – Title of the chat for which join request was sent.request_chat_date (
datetime, optional) – Date when join request was sent.business_bot (
types.User, optional) – Business bot that manages this chat.business_bot_manage_url (
str, optional) – Contains a deep link used to open a management menu in the business bot.charge_paid_message_stars (
int, optional) – Number of stars for the paid message.registration_date (
str, optional) – Date when the user registered on Telegram, in format MM.YYYY.phone_number_country_code (
str, optional) – A two-letter ISO 3166-1 alpha-2 country code based on the phone number of the userlast_name_change_date (
datetime, optional) – Date when the user’s name was changed.last_photo_change_date (
datetime, optional) – Date when the user’s photo was changed.