Documentation ¶
Index ¶
- type Service
- func (s *Service) AccountCheckUsername(ctx context.Context, request *mtproto.TLAccountCheckUsername) (*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) ChannelsUpdateUsername(ctx context.Context, request *mtproto.TLChannelsUpdateUsername) (*mtproto.Bool, error)
- func (s *Service) ContactsResolveUsername(ctx context.Context, request *mtproto.TLContactsResolveUsername) (*mtproto.Contacts_ResolvedPeer, error)
- func (s *Service) GetServiceContext() *svc.ServiceContext
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) 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) 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;
func (*Service) GetServiceContext ¶ added in v0.96.0
func (s *Service) GetServiceContext() *svc.ServiceContext
Click to show internal directories.
Click to hide internal directories.