type github.com/gotd/td/tg.User
139 uses
github.com/gotd/td/tg (current package)
tl_handlers_gen.go#L48: Users map[int64]*User
tl_handlers_gen.go#L55: u.Users = make(map[int64]*User, 0)
tl_help_support_gen.go#L197: func (s *HelpSupport) GetUserAsNotEmpty() (*User, bool) {
tl_registry_gen.go#L3671: UserTypeID: func() bin.Object { return &User{} },
tl_user_gen.go#L173: type User struct {
tl_user_gen.go#L332: func (u User) construct() UserClass { return &u }
tl_user_gen.go#L336: _ bin.Encoder = &User{}
tl_user_gen.go#L337: _ bin.Decoder = &User{}
tl_user_gen.go#L338: _ bin.BareEncoder = &User{}
tl_user_gen.go#L339: _ bin.BareDecoder = &User{}
tl_user_gen.go#L341: _ UserClass = &User{}
tl_user_gen.go#L344: func (u *User) Zero() bool {
tl_user_gen.go#L476: func (u *User) String() string {
tl_user_gen.go#L480: type Alias User
tl_user_gen.go#L485: func (u *User) FillFrom(from interface {
tl_user_gen.go#L618: func (*User) TypeID() uint32 {
tl_user_gen.go#L623: func (*User) TypeName() string {
tl_user_gen.go#L628: func (u *User) TypeInfo() tdp.Type {
tl_user_gen.go#L837: func (u *User) SetFlags() {
tl_user_gen.go#L955: func (u *User) Encode(b *bin.Buffer) error {
tl_user_gen.go#L964: func (u *User) EncodeBare(b *bin.Buffer) error {
tl_user_gen.go#L1057: func (u *User) Decode(b *bin.Buffer) error {
tl_user_gen.go#L1068: func (u *User) DecodeBare(b *bin.Buffer) error {
tl_user_gen.go#L1243: func (u *User) SetSelf(value bool) {
tl_user_gen.go#L1254: func (u *User) GetSelf() (value bool) {
tl_user_gen.go#L1262: func (u *User) SetContact(value bool) {
tl_user_gen.go#L1273: func (u *User) GetContact() (value bool) {
tl_user_gen.go#L1281: func (u *User) SetMutualContact(value bool) {
tl_user_gen.go#L1292: func (u *User) GetMutualContact() (value bool) {
tl_user_gen.go#L1300: func (u *User) SetDeleted(value bool) {
tl_user_gen.go#L1311: func (u *User) GetDeleted() (value bool) {
tl_user_gen.go#L1319: func (u *User) SetBot(value bool) {
tl_user_gen.go#L1330: func (u *User) GetBot() (value bool) {
tl_user_gen.go#L1338: func (u *User) SetBotChatHistory(value bool) {
tl_user_gen.go#L1349: func (u *User) GetBotChatHistory() (value bool) {
tl_user_gen.go#L1357: func (u *User) SetBotNochats(value bool) {
tl_user_gen.go#L1368: func (u *User) GetBotNochats() (value bool) {
tl_user_gen.go#L1376: func (u *User) SetVerified(value bool) {
tl_user_gen.go#L1387: func (u *User) GetVerified() (value bool) {
tl_user_gen.go#L1395: func (u *User) SetRestricted(value bool) {
tl_user_gen.go#L1406: func (u *User) GetRestricted() (value bool) {
tl_user_gen.go#L1414: func (u *User) SetMin(value bool) {
tl_user_gen.go#L1425: func (u *User) GetMin() (value bool) {
tl_user_gen.go#L1433: func (u *User) SetBotInlineGeo(value bool) {
tl_user_gen.go#L1444: func (u *User) GetBotInlineGeo() (value bool) {
tl_user_gen.go#L1452: func (u *User) SetSupport(value bool) {
tl_user_gen.go#L1463: func (u *User) GetSupport() (value bool) {
tl_user_gen.go#L1471: func (u *User) SetScam(value bool) {
tl_user_gen.go#L1482: func (u *User) GetScam() (value bool) {
tl_user_gen.go#L1490: func (u *User) SetApplyMinPhoto(value bool) {
tl_user_gen.go#L1501: func (u *User) GetApplyMinPhoto() (value bool) {
tl_user_gen.go#L1509: func (u *User) SetFake(value bool) {
tl_user_gen.go#L1520: func (u *User) GetFake() (value bool) {
tl_user_gen.go#L1528: func (u *User) SetBotAttachMenu(value bool) {
tl_user_gen.go#L1539: func (u *User) GetBotAttachMenu() (value bool) {
tl_user_gen.go#L1547: func (u *User) SetPremium(value bool) {
tl_user_gen.go#L1558: func (u *User) GetPremium() (value bool) {
tl_user_gen.go#L1566: func (u *User) SetAttachMenuEnabled(value bool) {
tl_user_gen.go#L1577: func (u *User) GetAttachMenuEnabled() (value bool) {
tl_user_gen.go#L1585: func (u *User) SetBotCanEdit(value bool) {
tl_user_gen.go#L1596: func (u *User) GetBotCanEdit() (value bool) {
tl_user_gen.go#L1604: func (u *User) SetCloseFriend(value bool) {
tl_user_gen.go#L1615: func (u *User) GetCloseFriend() (value bool) {
tl_user_gen.go#L1623: func (u *User) SetStoriesHidden(value bool) {
tl_user_gen.go#L1634: func (u *User) GetStoriesHidden() (value bool) {
tl_user_gen.go#L1642: func (u *User) SetStoriesUnavailable(value bool) {
tl_user_gen.go#L1653: func (u *User) GetStoriesUnavailable() (value bool) {
tl_user_gen.go#L1661: func (u *User) GetID() (value int64) {
tl_user_gen.go#L1669: func (u *User) SetAccessHash(value int64) {
tl_user_gen.go#L1676: func (u *User) GetAccessHash() (value int64, ok bool) {
tl_user_gen.go#L1687: func (u *User) SetFirstName(value string) {
tl_user_gen.go#L1694: func (u *User) GetFirstName() (value string, ok bool) {
tl_user_gen.go#L1705: func (u *User) SetLastName(value string) {
tl_user_gen.go#L1712: func (u *User) GetLastName() (value string, ok bool) {
tl_user_gen.go#L1723: func (u *User) SetUsername(value string) {
tl_user_gen.go#L1730: func (u *User) GetUsername() (value string, ok bool) {
tl_user_gen.go#L1741: func (u *User) SetPhone(value string) {
tl_user_gen.go#L1748: func (u *User) GetPhone() (value string, ok bool) {
tl_user_gen.go#L1759: func (u *User) SetPhoto(value UserProfilePhotoClass) {
tl_user_gen.go#L1766: func (u *User) GetPhoto() (value UserProfilePhotoClass, ok bool) {
tl_user_gen.go#L1777: func (u *User) SetStatus(value UserStatusClass) {
tl_user_gen.go#L1784: func (u *User) GetStatus() (value UserStatusClass, ok bool) {
tl_user_gen.go#L1795: func (u *User) SetBotInfoVersion(value int) {
tl_user_gen.go#L1802: func (u *User) GetBotInfoVersion() (value int, ok bool) {
tl_user_gen.go#L1813: func (u *User) SetRestrictionReason(value []RestrictionReason) {
tl_user_gen.go#L1820: func (u *User) GetRestrictionReason() (value []RestrictionReason, ok bool) {
tl_user_gen.go#L1831: func (u *User) SetBotInlinePlaceholder(value string) {
tl_user_gen.go#L1838: func (u *User) GetBotInlinePlaceholder() (value string, ok bool) {
tl_user_gen.go#L1849: func (u *User) SetLangCode(value string) {
tl_user_gen.go#L1856: func (u *User) GetLangCode() (value string, ok bool) {
tl_user_gen.go#L1867: func (u *User) SetEmojiStatus(value EmojiStatusClass) {
tl_user_gen.go#L1874: func (u *User) GetEmojiStatus() (value EmojiStatusClass, ok bool) {
tl_user_gen.go#L1885: func (u *User) SetUsernames(value []Username) {
tl_user_gen.go#L1892: func (u *User) GetUsernames() (value []Username, ok bool) {
tl_user_gen.go#L1903: func (u *User) SetStoriesMaxID(value int) {
tl_user_gen.go#L1910: func (u *User) GetStoriesMaxID() (value int, ok bool) {
tl_user_gen.go#L1921: func (u *User) SetColor(value PeerColor) {
tl_user_gen.go#L1928: func (u *User) GetColor() (value PeerColor, ok bool) {
tl_user_gen.go#L1939: func (u *User) SetProfileColor(value PeerColor) {
tl_user_gen.go#L1946: func (u *User) GetProfileColor() (value PeerColor, ok bool) {
tl_user_gen.go#L1996: AsNotEmpty() (*User, bool)
tl_user_gen.go#L2000: func (u *User) AsInputPeer() *InputPeerUser {
tl_user_gen.go#L2011: func (u *User) AsInput() *InputUser {
tl_user_gen.go#L2022: func (u *UserEmpty) AsNotEmpty() (*User, bool) {
tl_user_gen.go#L2027: func (u *User) AsNotEmpty() (*User, bool) {
tl_user_gen.go#L2047: v := User{}
tl_user_slices_gen.go#L165: func (s UserClassArray) FillUserMap(to map[int64]*User) {
tl_user_slices_gen.go#L167: value, ok := elem.(*User)
tl_user_slices_gen.go#L176: func (s UserClassArray) UserToMap() map[int64]*User {
tl_user_slices_gen.go#L177: r := make(map[int64]*User, len(s))
tl_user_slices_gen.go#L185: value, ok := elem.(*User)
tl_user_slices_gen.go#L196: func (s UserClassArray) FillNotEmptyMap(to map[int64]*User) {
tl_user_slices_gen.go#L207: func (s UserClassArray) NotEmptyToMap() map[int64]*User {
tl_user_slices_gen.go#L208: r := make(map[int64]*User, len(s))
tl_user_slices_gen.go#L215: func (s UserClassArray) AppendOnlyNotEmpty(to []*User) []*User {
tl_user_slices_gen.go#L228: func (s UserClassArray) AsNotEmpty() (to []*User) {
tl_user_slices_gen.go#L233: func (s UserClassArray) FirstAsNotEmpty() (v *User, ok bool) {
tl_user_slices_gen.go#L242: func (s UserClassArray) LastAsNotEmpty() (v *User, ok bool) {
tl_user_slices_gen.go#L251: func (s *UserClassArray) PopFirstAsNotEmpty() (v *User, ok bool) {
tl_user_slices_gen.go#L260: func (s *UserClassArray) PopAsNotEmpty() (v *User, ok bool) {
tl_user_slices_gen.go#L379: type UserArray []User
tl_user_slices_gen.go#L382: func (s UserArray) Sort(less func(a, b User) bool) UserArray {
tl_user_slices_gen.go#L390: func (s UserArray) SortStable(less func(a, b User) bool) UserArray {
tl_user_slices_gen.go#L398: func (s UserArray) Retain(keep func(x User) bool) UserArray {
tl_user_slices_gen.go#L412: func (s UserArray) First() (v User, ok bool) {
tl_user_slices_gen.go#L420: func (s UserArray) Last() (v User, ok bool) {
tl_user_slices_gen.go#L428: func (s *UserArray) PopFirst() (v User, ok bool) {
tl_user_slices_gen.go#L438: var zero User
tl_user_slices_gen.go#L447: func (s *UserArray) Pop() (v User, ok bool) {
tl_user_slices_gen.go#L462: return s.Sort(func(a, b User) bool {
tl_user_slices_gen.go#L469: return s.SortStable(func(a, b User) bool {
tl_user_slices_gen.go#L475: func (s UserArray) FillMap(to map[int64]User) {
tl_user_slices_gen.go#L482: func (s UserArray) ToMap() map[int64]User {
tl_user_slices_gen.go#L483: r := make(map[int64]User, len(s))
github.com/gotd/td/telegram
self.go#L14: func (c *Client) Self(ctx context.Context) (*tg.User, error) {
github.com/gotd/td/telegram/auth
self.go#L14: func (c *Client) self(ctx context.Context) (*tg.User, error) {
status.go#L16: User *tg.User
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |