peerSettings
List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar », see here » for more info.
type tg.PeerSettings struct { /* ... */ }
Fields
| Name | Type | Required | Description |
|---|---|---|---|
ReportSpam | bool | — | Whether we can still report the user for spam |
AddContact | bool | — | Whether we can add the user as contact |
BlockContact | bool | — | Whether we can block the user |
ShareContact | bool | — | Whether we can share the user's contact |
NeedContactsException | bool | — | Whether a special exception for contacts is needed |
ReportGeo | bool | — | Whether we can report a geogroup as irrelevant for this location |
Autoarchived | bool | — | Whether this peer was automatically archived according to privacy settings and can be unarchived |
InviteMembers | bool | — | If set, this is a recently created group chat to which new members can be invited |
RequestChatBroadcast | bool | — | 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). |
BusinessBotPaused | bool | — | This flag is set if both business_bot_id and business_bot_manage_url are set and all connected business bots » were paused in this chat using account toggleConnectedBotPaused ». |
BusinessBotCanReply | bool | — | This flag is set if both business_bot_id and business_bot_manage_url are set and connected business bots » can reply to messages in this chat, as specified by the settings during initial configuration. |
GeoDistance | int | — | Distance in meters between us and this peer |
RequestChatTitle | string | — | If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the chat/channel's title. |
RequestChatDate | int | — | If set, this is a private chat with an administrator of a chat or channel to which the user sent a join request, and this field contains the timestamp when the join request » was sent. |
BusinessBotID | int64 | — | Contains the ID of the business bot » managing this chat, used to display info about the bot in the action bar. |
BusinessBotManageURL | string | — | Contains a deep link », used to open a management menu in the business bot. This flag is set if and only if business_bot_id is set. |
ChargePaidMessageStars | int64 | — | All users that must pay us » to send us private messages will have this flag set only for us, containing the amount of required stars, see here » for more info on paid messages. |
RegistrationMonth | string | — | Used to display the user's registration year and month, the string is in MM.YYYY format, where MM is the registration month (1-12), and YYYY is the registration year. |
PhoneCountry | string | — | The country code of the user's phone number. |
NameChangeDate | int | — | When was the user's name last changed. |
PhotoChangeDate | int | — | When was the user's photo last changed. |
References
- Official documentation
- Generated Go reference
- TL definition:
peerSettings#f47741f7