Raw.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.
peerSettings#f47741f7 flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true request_chat_broadcast:flags.10?true business_bot_paused:flags.11?true business_bot_can_reply:flags.12?true geo_distance:flags.6?int request_chat_title:flags.9?string request_chat_date:flags.9?int business_bot_id:flags.13?long business_bot_manage_url:flags.13?string charge_paid_message_stars:flags.14?long registration_month:flags.15?string phone_country:flags.16?string name_change_date:flags.17?int photo_change_date:flags.18?int = PeerSettings;
export namespace Raw {
export class PeerSettings {
constructor(params: {
reportSpam?: boolean;
addContact?: boolean;
blockContact?: boolean;
shareContact?: boolean;
needContactsException?: boolean;
reportGeo?: boolean;
autoarchived?: boolean;
inviteMembers?: boolean;
requestChatBroadcast?: boolean;
businessBotPaused?: boolean;
businessBotCanReply?: boolean;
geoDistance?: number;
requestChatTitle?: string;
requestChatDate?: number;
businessBotId?: bigint;
businessBotManageUrl?: string;
chargePaidMessageStars?: bigint;
registrationMonth?: string;
phoneCountry?: string;
nameChangeDate?: number;
photoChangeDate?: number;
}) {}
}
}
This is a types constructor, you can’t use it as method when call invoke.
Layer: 201
Constructor ID: 0xf47741f7
Property
reportSpam
: boolean or undefinedWhether we can still report the user for spam
addContact
: boolean or undefinedWhether we can add the user as contact
blockContact
: boolean or undefinedWhether we can block the user
shareContact
: boolean or undefinedWhether we can share the user’s contact
needContactsException
: boolean or undefinedWhether a special exception for contacts is needed
reportGeo
: boolean or undefinedWhether we can report a geogroup as irrelevant for this location
autoarchived
: boolean or undefinedWhether this peer was automatically archived according to privacy settings and can be unarchived
inviteMembers
: boolean or undefinedIf set, this is a recently created group chat to which new members can be invited
requestChatBroadcast
: boolean or undefinedThis flag is set if requestChatTitle and requestChatDate 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
: boolean or undefinedThis flag is set if both businessBotId and businessBotManageUrl are set and all connected business bots were paused in this chat using account.toggleconnectedbotpaused.
businessBotCanReply
: boolean or undefinedThis flag is set if both businessBotId and businessBotManageUrl are set and connected business bots can reply to messages in this chat, as specified by the settings during initial configuration.
geoDistance
: number or undefinedDistance in meters between us and this peer
requestChatTitle
: string or undefinedIf 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
: number or undefinedIf 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
: bigint or undefinedContains the id of the business bot managing this chat, used to display info about the bot in the action bar.
businessBotManageUrl
: string or undefinedContains a deep link, used to open a management menu in the business bot. this flag is set if and only if businessBotId is set.
chargePaidMessageStars
: bigint or undefinedregistrationMonth
: string or undefinedphoneCountry
: string or undefinednameChangeDate
: number or undefinedphotoChangeDate
: number or undefined