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
isBlocked
True, if the user is blacklisted by the current user
canBeCalled
True, if the user can be called
hasPrivateCalls
True, if the user can’t be called due to their privacy settings
needPhoneNumberPrivacyException
True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used
bio
A short user bio
shareText
For bots, the text that is included with the link when users share the bot
groupInCommonCount
Number of group chats where both the other user and the current user are a member; 0 for the current user
botInfo
If the user is a bot, information about the bot; may be null