Documentation ¶
Index ¶
- type Service
- func (s *Service) CodeCreatePhoneCode(ctx context.Context, request *code.TLCodeCreatePhoneCode) (*code.PhoneCodeTransaction, error)
- func (s *Service) CodeDeletePhoneCode(ctx context.Context, request *code.TLCodeDeletePhoneCode) (*mtproto.Bool, error)
- func (s *Service) CodeGetPhoneCode(ctx context.Context, request *code.TLCodeGetPhoneCode) (*code.PhoneCodeTransaction, error)
- func (s *Service) CodeUpdatePhoneCodeData(ctx context.Context, request *code.TLCodeUpdatePhoneCodeData) (*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) CodeCreatePhoneCode ¶
func (s *Service) CodeCreatePhoneCode(ctx context.Context, request *code.TLCodeCreatePhoneCode) (*code.PhoneCodeTransaction, error)
CodeCreatePhoneCode code.createPhoneCode flags:# auth_key_id:long session_id:long phone:string phone_number_registered:flags.0?true sent_code_type:int next_code_type:int state:int = PhoneCodeTransaction;
func (*Service) CodeDeletePhoneCode ¶
func (s *Service) CodeDeletePhoneCode(ctx context.Context, request *code.TLCodeDeletePhoneCode) (*mtproto.Bool, error)
CodeDeletePhoneCode code.deletePhoneCode auth_key_id:long phone:string phone_code_hash:string = Bool;
func (*Service) CodeGetPhoneCode ¶
func (s *Service) CodeGetPhoneCode(ctx context.Context, request *code.TLCodeGetPhoneCode) (*code.PhoneCodeTransaction, error)
CodeGetPhoneCode code.getPhoneCode auth_key_id:long phone:string phone_code_hash:string = PhoneCodeTransaction;
func (*Service) CodeUpdatePhoneCodeData ¶
func (s *Service) CodeUpdatePhoneCodeData(ctx context.Context, request *code.TLCodeUpdatePhoneCodeData) (*mtproto.Bool, error)
CodeUpdatePhoneCodeData code.updatePhoneCodeData auth_key_id:long phone:string phone_code_hash:string code_data:PhoneCodeTransaction = Bool;
Click to show internal directories.
Click to hide internal directories.