Documentation ¶
Index ¶
- type Service
- func (s *Service) AccountCheckUsername(ctx context.Context, request *mtproto.TLAccountCheckUsername) (*mtproto.Bool, error)
- func (s *Service) AccountReorderUsernames(ctx context.Context, request *mtproto.TLAccountReorderUsernames) (*mtproto.Bool, error)
- func (s *Service) AccountToggleUsername(ctx context.Context, request *mtproto.TLAccountToggleUsername) (*mtproto.Bool, error)
- func (s *Service) AccountUpdateUsername(ctx context.Context, request *mtproto.TLAccountUpdateUsername) (*mtproto.User, error)
- func (s *Service) ChannelsCheckUsername(ctx context.Context, request *mtproto.TLChannelsCheckUsername) (*mtproto.Bool, error)
- func (s *Service) ChannelsDeactivateAllUsernames(ctx context.Context, request *mtproto.TLChannelsDeactivateAllUsernames) (*mtproto.Bool, error)
- func (s *Service) ChannelsReorderUsernames(ctx context.Context, request *mtproto.TLChannelsReorderUsernames) (*mtproto.Bool, error)
- func (s *Service) ChannelsToggleUsername(ctx context.Context, request *mtproto.TLChannelsToggleUsername) (*mtproto.Bool, error)
- func (s *Service) ChannelsUpdateUsername(ctx context.Context, request *mtproto.TLChannelsUpdateUsername) (*mtproto.Bool, error)
- func (s *Service) ContactsResolveUsername(ctx context.Context, request *mtproto.TLContactsResolveUsername) (*mtproto.Contacts_ResolvedPeer, 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) AccountCheckUsername ¶
func (s *Service) AccountCheckUsername(ctx context.Context, request *mtproto.TLAccountCheckUsername) (*mtproto.Bool, error)
AccountCheckUsername account.checkUsername#2714d86c username:string = Bool;
func (*Service) AccountReorderUsernames ¶ added in v0.90.1
func (s *Service) AccountReorderUsernames(ctx context.Context, request *mtproto.TLAccountReorderUsernames) (*mtproto.Bool, error)
AccountReorderUsernames account.reorderUsernames#ef500eab order:Vector<string> = Bool;
func (*Service) AccountToggleUsername ¶ added in v0.90.1
func (s *Service) AccountToggleUsername(ctx context.Context, request *mtproto.TLAccountToggleUsername) (*mtproto.Bool, error)
AccountToggleUsername account.toggleUsername#58d6b376 username:string active:Bool = Bool;
func (*Service) AccountUpdateUsername ¶
func (s *Service) AccountUpdateUsername(ctx context.Context, request *mtproto.TLAccountUpdateUsername) (*mtproto.User, error)
AccountUpdateUsername account.updateUsername#3e0bdd7c username:string = User;
func (*Service) ChannelsCheckUsername ¶
func (s *Service) ChannelsCheckUsername(ctx context.Context, request *mtproto.TLChannelsCheckUsername) (*mtproto.Bool, error)
ChannelsCheckUsername channels.checkUsername#10e6bd2c channel:InputChannel username:string = Bool;
func (*Service) ChannelsDeactivateAllUsernames ¶ added in v0.90.1
func (s *Service) ChannelsDeactivateAllUsernames(ctx context.Context, request *mtproto.TLChannelsDeactivateAllUsernames) (*mtproto.Bool, error)
ChannelsDeactivateAllUsernames channels.deactivateAllUsernames#a245dd3 channel:InputChannel = Bool;
func (*Service) ChannelsReorderUsernames ¶ added in v0.90.1
func (s *Service) ChannelsReorderUsernames(ctx context.Context, request *mtproto.TLChannelsReorderUsernames) (*mtproto.Bool, error)
ChannelsReorderUsernames channels.reorderUsernames#b45ced1d channel:InputChannel order:Vector<string> = Bool;
func (*Service) ChannelsToggleUsername ¶ added in v0.90.1
func (s *Service) ChannelsToggleUsername(ctx context.Context, request *mtproto.TLChannelsToggleUsername) (*mtproto.Bool, error)
ChannelsToggleUsername channels.toggleUsername#50f24105 channel:InputChannel username:string active:Bool = Bool;
func (*Service) ChannelsUpdateUsername ¶
func (s *Service) ChannelsUpdateUsername(ctx context.Context, request *mtproto.TLChannelsUpdateUsername) (*mtproto.Bool, error)
ChannelsUpdateUsername channels.updateUsername#3514b3de channel:InputChannel username:string = Bool;
func (*Service) ContactsResolveUsername ¶
func (s *Service) ContactsResolveUsername(ctx context.Context, request *mtproto.TLContactsResolveUsername) (*mtproto.Contacts_ResolvedPeer, error)
ContactsResolveUsername contacts.resolveUsername#f93ccba3 username:string = contacts.ResolvedPeer;