Documentation
¶
Index ¶
- type ContactsCore
- func (c *ContactsCore) AccountGetContactSignUpNotification(in *mtproto.TLAccountGetContactSignUpNotification) (*mtproto.Bool, error)
- func (c *ContactsCore) AccountSetContactSignUpNotification(in *mtproto.TLAccountSetContactSignUpNotification) (*mtproto.Bool, error)
- func (c *ContactsCore) ContactsAcceptContact(in *mtproto.TLContactsAcceptContact) (*mtproto.Updates, error)
- func (c *ContactsCore) ContactsAddContact(in *mtproto.TLContactsAddContact) (*mtproto.Updates, error)
- func (c *ContactsCore) ContactsBlock(in *mtproto.TLContactsBlock) (*mtproto.Bool, error)
- func (c *ContactsCore) ContactsDeleteByPhones(in *mtproto.TLContactsDeleteByPhones) (*mtproto.Bool, error)
- func (c *ContactsCore) ContactsDeleteContacts(in *mtproto.TLContactsDeleteContacts) (*mtproto.Updates, error)
- func (c *ContactsCore) ContactsExportContactToken(in *mtproto.TLContactsExportContactToken) (*mtproto.ExportedContactToken, error)
- func (c *ContactsCore) ContactsGetBlocked(in *mtproto.TLContactsGetBlocked) (*mtproto.Contacts_Blocked, error)
- func (c *ContactsCore) ContactsGetContactIDs(in *mtproto.TLContactsGetContactIDs) (*mtproto.Vector_Int, error)
- func (c *ContactsCore) ContactsGetContacts(in *mtproto.TLContactsGetContacts) (*mtproto.Contacts_Contacts, error)
- func (c *ContactsCore) ContactsGetLocated(in *mtproto.TLContactsGetLocated) (*mtproto.Updates, error)
- func (c *ContactsCore) ContactsGetSaved(in *mtproto.TLContactsGetSaved) (*mtproto.Vector_SavedContact, error)
- func (c *ContactsCore) ContactsGetStatuses(in *mtproto.TLContactsGetStatuses) (*mtproto.Vector_ContactStatus, error)
- func (c *ContactsCore) ContactsGetTopPeers(in *mtproto.TLContactsGetTopPeers) (*mtproto.Contacts_TopPeers, error)
- func (c *ContactsCore) ContactsImportContactToken(in *mtproto.TLContactsImportContactToken) (*mtproto.User, error)
- func (c *ContactsCore) ContactsImportContacts(in *mtproto.TLContactsImportContacts) (*mtproto.Contacts_ImportedContacts, error)
- func (c *ContactsCore) ContactsResetSaved(in *mtproto.TLContactsResetSaved) (*mtproto.Bool, error)
- func (c *ContactsCore) ContactsResetTopPeerRating(in *mtproto.TLContactsResetTopPeerRating) (*mtproto.Bool, error)
- func (c *ContactsCore) ContactsSearch(in *mtproto.TLContactsSearch) (*mtproto.Contacts_Found, error)
- func (c *ContactsCore) ContactsToggleTopPeers(in *mtproto.TLContactsToggleTopPeers) (*mtproto.Bool, error)
- func (c *ContactsCore) ContactsUnblock(in *mtproto.TLContactsUnblock) (*mtproto.Bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactsCore ¶
type ContactsCore struct { logx.Logger MD *metadata.RpcMetadata // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, svcCtx *svc.ServiceContext) *ContactsCore
func (*ContactsCore) AccountGetContactSignUpNotification ¶
func (c *ContactsCore) AccountGetContactSignUpNotification(in *mtproto.TLAccountGetContactSignUpNotification) (*mtproto.Bool, error)
AccountGetContactSignUpNotification account.getContactSignUpNotification#9f07c728 = Bool;
func (*ContactsCore) AccountSetContactSignUpNotification ¶
func (c *ContactsCore) AccountSetContactSignUpNotification(in *mtproto.TLAccountSetContactSignUpNotification) (*mtproto.Bool, error)
AccountSetContactSignUpNotification account.setContactSignUpNotification#cff43f61 silent:Bool = Bool;
func (*ContactsCore) ContactsAcceptContact ¶
func (c *ContactsCore) ContactsAcceptContact(in *mtproto.TLContactsAcceptContact) (*mtproto.Updates, error)
ContactsAcceptContact contacts.acceptContact#f831a20f id:InputUser = Updates;
func (*ContactsCore) ContactsAddContact ¶
func (c *ContactsCore) ContactsAddContact(in *mtproto.TLContactsAddContact) (*mtproto.Updates, error)
ContactsAddContact contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;
func (*ContactsCore) ContactsBlock ¶
func (c *ContactsCore) ContactsBlock(in *mtproto.TLContactsBlock) (*mtproto.Bool, error)
ContactsBlock contacts.block#68cc1411 id:InputPeer = Bool;
func (*ContactsCore) ContactsDeleteByPhones ¶
func (c *ContactsCore) ContactsDeleteByPhones(in *mtproto.TLContactsDeleteByPhones) (*mtproto.Bool, error)
ContactsDeleteByPhones contacts.deleteByPhones#1013fd9e phones:Vector<string> = Bool;
func (*ContactsCore) ContactsDeleteContacts ¶
func (c *ContactsCore) ContactsDeleteContacts(in *mtproto.TLContactsDeleteContacts) (*mtproto.Updates, error)
ContactsDeleteContacts contacts.deleteContacts#96a0e00 id:Vector<InputUser> = Updates;
func (*ContactsCore) ContactsExportContactToken ¶ added in v0.90.1
func (c *ContactsCore) ContactsExportContactToken(in *mtproto.TLContactsExportContactToken) (*mtproto.ExportedContactToken, error)
ContactsExportContactToken contacts.exportContactToken#f8654027 = ExportedContactToken;
func (*ContactsCore) ContactsGetBlocked ¶
func (c *ContactsCore) ContactsGetBlocked(in *mtproto.TLContactsGetBlocked) (*mtproto.Contacts_Blocked, error)
ContactsGetBlocked contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked;
func (*ContactsCore) ContactsGetContactIDs ¶
func (c *ContactsCore) ContactsGetContactIDs(in *mtproto.TLContactsGetContactIDs) (*mtproto.Vector_Int, error)
ContactsGetContactIDs contacts.getContactIDs#7adc669d hash:long = Vector<int>;
func (*ContactsCore) ContactsGetContacts ¶
func (c *ContactsCore) ContactsGetContacts(in *mtproto.TLContactsGetContacts) (*mtproto.Contacts_Contacts, error)
ContactsGetContacts contacts.getContacts#5dd69e12 hash:long = contacts.Contacts;
func (*ContactsCore) ContactsGetLocated ¶
func (c *ContactsCore) ContactsGetLocated(in *mtproto.TLContactsGetLocated) (*mtproto.Updates, error)
ContactsGetLocated contacts.getLocated#d348bc44 flags:# background:flags.1?true geo_point:InputGeoPoint self_expires:flags.0?int = Updates;
func (*ContactsCore) ContactsGetSaved ¶
func (c *ContactsCore) ContactsGetSaved(in *mtproto.TLContactsGetSaved) (*mtproto.Vector_SavedContact, error)
ContactsGetSaved contacts.getSaved#82f1e39f = Vector<SavedContact>;
func (*ContactsCore) ContactsGetStatuses ¶
func (c *ContactsCore) ContactsGetStatuses(in *mtproto.TLContactsGetStatuses) (*mtproto.Vector_ContactStatus, error)
ContactsGetStatuses contacts.getStatuses#c4a353ee = Vector<ContactStatus>;
func (*ContactsCore) ContactsGetTopPeers ¶
func (c *ContactsCore) ContactsGetTopPeers(in *mtproto.TLContactsGetTopPeers) (*mtproto.Contacts_TopPeers, error)
ContactsGetTopPeers contacts.getTopPeers#973478b6 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true forward_users:flags.4?true forward_chats:flags.5?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:long = contacts.TopPeers;
func (*ContactsCore) ContactsImportContactToken ¶ added in v0.90.1
func (c *ContactsCore) ContactsImportContactToken(in *mtproto.TLContactsImportContactToken) (*mtproto.User, error)
ContactsImportContactToken contacts.importContactToken#13005788 token:string = User;
func (*ContactsCore) ContactsImportContacts ¶
func (c *ContactsCore) ContactsImportContacts(in *mtproto.TLContactsImportContacts) (*mtproto.Contacts_ImportedContacts, error)
ContactsImportContacts contacts.importContacts#2c800be5 contacts:Vector<InputContact> = contacts.ImportedContacts;
func (*ContactsCore) ContactsResetSaved ¶
func (c *ContactsCore) ContactsResetSaved(in *mtproto.TLContactsResetSaved) (*mtproto.Bool, error)
ContactsResetSaved contacts.resetSaved#879537f1 = Bool;
func (*ContactsCore) ContactsResetTopPeerRating ¶
func (c *ContactsCore) ContactsResetTopPeerRating(in *mtproto.TLContactsResetTopPeerRating) (*mtproto.Bool, error)
ContactsResetTopPeerRating contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool;
func (*ContactsCore) ContactsSearch ¶
func (c *ContactsCore) ContactsSearch(in *mtproto.TLContactsSearch) (*mtproto.Contacts_Found, error)
ContactsSearch contacts.search#11f812d8 q:string limit:int = contacts.Found;
func (*ContactsCore) ContactsToggleTopPeers ¶
func (c *ContactsCore) ContactsToggleTopPeers(in *mtproto.TLContactsToggleTopPeers) (*mtproto.Bool, error)
ContactsToggleTopPeers contacts.toggleTopPeers#8514bdda enabled:Bool = Bool;
func (*ContactsCore) ContactsUnblock ¶
func (c *ContactsCore) ContactsUnblock(in *mtproto.TLContactsUnblock) (*mtproto.Bool, error)
ContactsUnblock contacts.unblock#bea65d50 id:InputPeer = Bool;
Source Files
¶
- account.getContactSignUpNotification_handler.go
- account.setContactSignUpNotification_handler.go
- contacts.acceptContact_handler.go
- contacts.addContact_handler.go
- contacts.block_handler.go
- contacts.deleteByPhones_handler.go
- contacts.deleteContacts_handler.go
- contacts.exportContactToken_handler.go
- contacts.getBlocked_handler.go
- contacts.getContactIDs_handler.go
- contacts.getContacts_handler.go
- contacts.getLocated_handler.go
- contacts.getSaved_handler.go
- contacts.getStatuses_handler.go
- contacts.getTopPeers_handler.go
- contacts.importContactToken_handler.go
- contacts.importContacts_handler.go
- contacts.resetSaved_handler.go
- contacts.resetTopPeerRating_handler.go
- contacts.search_handler.go
- contacts.toggleTopPeers_handler.go
- contacts.unblock_handler.go
- core.go