UserFullInfo
public struct UserFullInfo : Codable, Equatable, FunctionResult
Contains full information about a user (except the full list of profile photos)
-
True, if the user is blacklisted by the current user
Declaration
Swift
public let isBlocked: Bool -
True, if the user can be called
Declaration
Swift
public let canBeCalled: Bool -
True, if the user can’t be called due to their privacy settings
Declaration
Swift
public let hasPrivateCalls: Bool -
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used
Declaration
Swift
public let needPhoneNumberPrivacyException: Bool -
A short user bio
Declaration
Swift
public let bio: String -
For bots, the text that is included with the link when users share the bot
Declaration
Swift
public let shareText: String -
Number of group chats where both the other user and the current user are a member; 0 for the current user
Declaration
Swift
public let groupInCommonCount: Int32 -
If the user is a bot, information about the bot; may be null
Declaration
Swift
public let botInfo: BotInfo? -
init(isBlocked:canBeCalled:hasPrivateCalls:needPhoneNumberPrivacyException:bio:shareText:groupInCommonCount:botInfo:)Contains full information about a user (except the full list of profile photos)
Declaration
Swift
public init(isBlocked: Bool, canBeCalled: Bool, hasPrivateCalls: Bool, needPhoneNumberPrivacyException: Bool, bio: String, shareText: String, groupInCommonCount: Int32, botInfo: BotInfo?)Parameters
isBlockedTrue, if the user is blacklisted by the current user
canBeCalledTrue, if the user can be called
hasPrivateCallsTrue, if the user can’t be called due to their privacy settings
needPhoneNumberPrivacyExceptionTrue, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used
bioA short user bio
shareTextFor bots, the text that is included with the link when users share the bot
groupInCommonCountNumber of group chats where both the other user and the current user are a member; 0 for the current user
botInfoIf the user is a bot, information about the bot; may be null
View on GitHub
Install in Dash
UserFullInfo Structure Reference