Documentation
¶
Index ¶
- type Service
- func (s *Service) AccountGetContactSignUpNotification(ctx context.Context, request *mtproto.TLAccountGetContactSignUpNotification) (*mtproto.Bool, error)
- func (s *Service) AccountSetContactSignUpNotification(ctx context.Context, request *mtproto.TLAccountSetContactSignUpNotification) (*mtproto.Bool, error)
- func (s *Service) ContactsAcceptContact(ctx context.Context, request *mtproto.TLContactsAcceptContact) (*mtproto.Updates, error)
- func (s *Service) ContactsAddContact(ctx context.Context, request *mtproto.TLContactsAddContact) (*mtproto.Updates, error)
- func (s *Service) ContactsBlock(ctx context.Context, request *mtproto.TLContactsBlock) (*mtproto.Bool, error)
- func (s *Service) ContactsDeleteByPhones(ctx context.Context, request *mtproto.TLContactsDeleteByPhones) (*mtproto.Bool, error)
- func (s *Service) ContactsDeleteContacts(ctx context.Context, request *mtproto.TLContactsDeleteContacts) (*mtproto.Updates, error)
- func (s *Service) ContactsExportContactToken(ctx context.Context, request *mtproto.TLContactsExportContactToken) (*mtproto.ExportedContactToken, error)
- func (s *Service) ContactsGetBlocked(ctx context.Context, request *mtproto.TLContactsGetBlocked) (*mtproto.Contacts_Blocked, error)
- func (s *Service) ContactsGetContactIDs(ctx context.Context, request *mtproto.TLContactsGetContactIDs) (*mtproto.Vector_Int, error)
- func (s *Service) ContactsGetContacts(ctx context.Context, request *mtproto.TLContactsGetContacts) (*mtproto.Contacts_Contacts, error)
- func (s *Service) ContactsGetLocated(ctx context.Context, request *mtproto.TLContactsGetLocated) (*mtproto.Updates, error)
- func (s *Service) ContactsGetSaved(ctx context.Context, request *mtproto.TLContactsGetSaved) (*mtproto.Vector_SavedContact, error)
- func (s *Service) ContactsGetStatuses(ctx context.Context, request *mtproto.TLContactsGetStatuses) (*mtproto.Vector_ContactStatus, error)
- func (s *Service) ContactsGetTopPeers(ctx context.Context, request *mtproto.TLContactsGetTopPeers) (*mtproto.Contacts_TopPeers, error)
- func (s *Service) ContactsImportContactToken(ctx context.Context, request *mtproto.TLContactsImportContactToken) (*mtproto.User, error)
- func (s *Service) ContactsImportContacts(ctx context.Context, request *mtproto.TLContactsImportContacts) (*mtproto.Contacts_ImportedContacts, error)
- func (s *Service) ContactsResetSaved(ctx context.Context, request *mtproto.TLContactsResetSaved) (*mtproto.Bool, error)
- func (s *Service) ContactsResetTopPeerRating(ctx context.Context, request *mtproto.TLContactsResetTopPeerRating) (*mtproto.Bool, error)
- func (s *Service) ContactsSearch(ctx context.Context, request *mtproto.TLContactsSearch) (*mtproto.Contacts_Found, error)
- func (s *Service) ContactsToggleTopPeers(ctx context.Context, request *mtproto.TLContactsToggleTopPeers) (*mtproto.Bool, error)
- func (s *Service) ContactsUnblock(ctx context.Context, request *mtproto.TLContactsUnblock) (*mtproto.Bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx *svc.ServiceContext) *Service
func (*Service) AccountGetContactSignUpNotification ¶
func (s *Service) AccountGetContactSignUpNotification(ctx context.Context, request *mtproto.TLAccountGetContactSignUpNotification) (*mtproto.Bool, error)
AccountGetContactSignUpNotification account.getContactSignUpNotification#9f07c728 = Bool;
func (*Service) AccountSetContactSignUpNotification ¶
func (s *Service) AccountSetContactSignUpNotification(ctx context.Context, request *mtproto.TLAccountSetContactSignUpNotification) (*mtproto.Bool, error)
AccountSetContactSignUpNotification account.setContactSignUpNotification#cff43f61 silent:Bool = Bool;
func (*Service) ContactsAcceptContact ¶
func (s *Service) ContactsAcceptContact(ctx context.Context, request *mtproto.TLContactsAcceptContact) (*mtproto.Updates, error)
ContactsAcceptContact contacts.acceptContact#f831a20f id:InputUser = Updates;
func (*Service) ContactsAddContact ¶
func (s *Service) ContactsAddContact(ctx context.Context, request *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 (*Service) ContactsBlock ¶
func (s *Service) ContactsBlock(ctx context.Context, request *mtproto.TLContactsBlock) (*mtproto.Bool, error)
ContactsBlock contacts.block#68cc1411 id:InputPeer = Bool;
func (*Service) ContactsDeleteByPhones ¶
func (s *Service) ContactsDeleteByPhones(ctx context.Context, request *mtproto.TLContactsDeleteByPhones) (*mtproto.Bool, error)
ContactsDeleteByPhones contacts.deleteByPhones#1013fd9e phones:Vector<string> = Bool;
func (*Service) ContactsDeleteContacts ¶
func (s *Service) ContactsDeleteContacts(ctx context.Context, request *mtproto.TLContactsDeleteContacts) (*mtproto.Updates, error)
ContactsDeleteContacts contacts.deleteContacts#96a0e00 id:Vector<InputUser> = Updates;
func (*Service) ContactsExportContactToken ¶ added in v0.90.1
func (s *Service) ContactsExportContactToken(ctx context.Context, request *mtproto.TLContactsExportContactToken) (*mtproto.ExportedContactToken, error)
ContactsExportContactToken contacts.exportContactToken#f8654027 = ExportedContactToken;
func (*Service) ContactsGetBlocked ¶
func (s *Service) ContactsGetBlocked(ctx context.Context, request *mtproto.TLContactsGetBlocked) (*mtproto.Contacts_Blocked, error)
ContactsGetBlocked contacts.getBlocked#f57c350f offset:int limit:int = contacts.Blocked;
func (*Service) ContactsGetContactIDs ¶
func (s *Service) ContactsGetContactIDs(ctx context.Context, request *mtproto.TLContactsGetContactIDs) (*mtproto.Vector_Int, error)
ContactsGetContactIDs contacts.getContactIDs#7adc669d hash:long = Vector<int>;
func (*Service) ContactsGetContacts ¶
func (s *Service) ContactsGetContacts(ctx context.Context, request *mtproto.TLContactsGetContacts) (*mtproto.Contacts_Contacts, error)
ContactsGetContacts contacts.getContacts#5dd69e12 hash:long = contacts.Contacts;
func (*Service) ContactsGetLocated ¶
func (s *Service) ContactsGetLocated(ctx context.Context, request *mtproto.TLContactsGetLocated) (*mtproto.Updates, error)
ContactsGetLocated contacts.getLocated#d348bc44 flags:# background:flags.1?true geo_point:InputGeoPoint self_expires:flags.0?int = Updates;
func (*Service) ContactsGetSaved ¶
func (s *Service) ContactsGetSaved(ctx context.Context, request *mtproto.TLContactsGetSaved) (*mtproto.Vector_SavedContact, error)
ContactsGetSaved contacts.getSaved#82f1e39f = Vector<SavedContact>;
func (*Service) ContactsGetStatuses ¶
func (s *Service) ContactsGetStatuses(ctx context.Context, request *mtproto.TLContactsGetStatuses) (*mtproto.Vector_ContactStatus, error)
ContactsGetStatuses contacts.getStatuses#c4a353ee = Vector<ContactStatus>;
func (*Service) ContactsGetTopPeers ¶
func (s *Service) ContactsGetTopPeers(ctx context.Context, request *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 (*Service) ContactsImportContactToken ¶ added in v0.90.1
func (s *Service) ContactsImportContactToken(ctx context.Context, request *mtproto.TLContactsImportContactToken) (*mtproto.User, error)
ContactsImportContactToken contacts.importContactToken#13005788 token:string = User;
func (*Service) ContactsImportContacts ¶
func (s *Service) ContactsImportContacts(ctx context.Context, request *mtproto.TLContactsImportContacts) (*mtproto.Contacts_ImportedContacts, error)
ContactsImportContacts contacts.importContacts#2c800be5 contacts:Vector<InputContact> = contacts.ImportedContacts;
func (*Service) ContactsResetSaved ¶
func (s *Service) ContactsResetSaved(ctx context.Context, request *mtproto.TLContactsResetSaved) (*mtproto.Bool, error)
ContactsResetSaved contacts.resetSaved#879537f1 = Bool;
func (*Service) ContactsResetTopPeerRating ¶
func (s *Service) ContactsResetTopPeerRating(ctx context.Context, request *mtproto.TLContactsResetTopPeerRating) (*mtproto.Bool, error)
ContactsResetTopPeerRating contacts.resetTopPeerRating#1ae373ac category:TopPeerCategory peer:InputPeer = Bool;
func (*Service) ContactsSearch ¶
func (s *Service) ContactsSearch(ctx context.Context, request *mtproto.TLContactsSearch) (*mtproto.Contacts_Found, error)
ContactsSearch contacts.search#11f812d8 q:string limit:int = contacts.Found;
func (*Service) ContactsToggleTopPeers ¶
func (s *Service) ContactsToggleTopPeers(ctx context.Context, request *mtproto.TLContactsToggleTopPeers) (*mtproto.Bool, error)
ContactsToggleTopPeers contacts.toggleTopPeers#8514bdda enabled:Bool = Bool;
func (*Service) ContactsUnblock ¶
func (s *Service) ContactsUnblock(ctx context.Context, request *mtproto.TLContactsUnblock) (*mtproto.Bool, error)
ContactsUnblock contacts.unblock#bea65d50 id:InputPeer = Bool;