User
Object Hierarchy:
Description:
public class User :
Error
Content:
Properties:
- public int32 accent_color_id { get; set construct; }
Identifier of the accent color for name, and backgrounds of profile
photo, reply header, and link preview
- public bool added_to_attachment_menu { get; set construct; }
True, if the user added the current bot to attachment menu; only
available to bots
- public int64 background_custom_emoji_id { get; set construct; }
Identifier of a custom emoji to be shown on the reply header and link
preview background; 0 if none
- public EmojiStatus? emoji_status { get; set construct; }
Emoji status to be shown instead of the default Telegram Premium
badge; may be null
- public string first_name { get; set construct; }
First name of the user
- public bool has_active_stories { get; set construct; }
True, if the user has non-expired stories available to the current
user
- public bool has_unread_active_stories { get; set construct; }
True, if the user has unread non-expired stories available to the
current user
- public bool have_access { get; set construct; }
If false, the user is inaccessible, and the only information known
about the user is inside this class. Identifier of the user can't be passed to any method
- public int64 id_ { get; set construct; }
User identifier
- public bool is_close_friend { get; set construct; }
The user is a
Client.close friend of the current user; implies that the user is a contact
- public bool is_contact { get; set construct; }
The user is a contact of the current user
- public bool is_mutual_contact { get; set construct; }
The user is a contact of the current user and the current user is a
contact of the user
- public bool is_premium { get; set construct; }
True, if the user is a Telegram Premium user
- public bool is_support { get; set construct; }
True, if the user is Telegram support account
- public string language_code { get; set construct; }
IETF language tag of the user's language; only available to bots
- public string last_name { get; set construct; }
Last name of the user
- public int64 paid_message_star_count { get; set construct; }
Number of Telegram Stars that must be paid by general user for each
sent message to the user. If positive and userFullInfo is unknown, use
Client.can_send_message_to_user to check whether the current
user must pay
- public string phone_number { get; set construct; }
Phone number of the user
- public int32 profile_accent_color_id { get; set construct; }
Identifier of the accent color for the user's profile; -1 if none
- public int64 profile_background_custom_emoji_id { get; set construct; }
Identifier of a custom emoji to be shown on the background of the
user's profile; 0 if none
- public ProfilePhoto? profile_photo { get; set construct; }
Profile photo of the user; may be null
- public string restriction_reason { get; set construct; }
If non-empty, it contains a human-readable description of the reason
why access to this user must be restricted
- public bool restricts_new_chats { get; set construct; }
True, if the user may restrict new chats with non-contacts. Use
Client.can_send_message_to_user to check whether the current
user can message the user or try to create a chat with them
- public UserStatus status { get; set construct; }
Current online status of the user
- public UserType type_ { get; set construct; }
Type of the user
- public Usernames? usernames { get; set construct; }
Usernames of the user; may be null
- public VerificationStatus? verification_status { get; set construct; }
Information about verification status of the user; may be null if none
Creation methods:
- public User (int64 id_, string first_name, string last_name, Usernames? usernames, string phone_number, UserStatus status, ProfilePhoto? profile_photo, int32 accent_color_id, int64 background_custom_emoji_id, int32 profile_accent_color_id, int64 profile_background_custom_emoji_id, EmojiStatus? emoji_status, bool is_contact, bool is_mutual_contact, bool is_close_friend, VerificationStatus? verification_status, bool is_premium, bool is_support, string restriction_reason, bool has_active_stories, bool has_unread_active_stories, bool restricts_new_chats, int64 paid_message_star_count, bool have_access, UserType type_, string language_code, bool added_to_attachment_menu)
Inherited Members:
All known members inherited from class TDLib.Error
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref