Documentation
¶
Index ¶
- type TestBOTAPI
- func (t *TestBOTAPI) AnswereCallbackCtx(ctx context.Context, Callbackanswere *botapi.Callbackanswere) error
- func (t *TestBOTAPI) Createkeyboard(keyboard *botapi.InlineKeyboardMarkup) ([]byte, error)
- func (t *TestBOTAPI) GetchatmemberCtx(ctx context.Context, Userid int64, Chatid int64) (*tgbotapi.ChatMember, bool, error)
- func (t *TestBOTAPI) Makerequest(ctx context.Context, s, srt string, readcloser io.ReadCloser) (*tgbotapi.APIResponse, error)
- func (t *TestBOTAPI) Send(msg *botapi.Msgcommon) (*tgbotapi.Message, error)
- func (t *TestBOTAPI) SendContext(ctx context.Context, msg *botapi.Msgcommon) (*tgbotapi.Message, error)
- type TestSboxStruct
- func (t *TestSboxStruct) AddInboud()
- func (t *TestSboxStruct) AddInbound() error
- func (t *TestSboxStruct) AddOutbound() error
- func (t *TestSboxStruct) AddUser(user *sbox.Userconfig) (*sbox.Sboxstatus, error)
- func (t *TestSboxStruct) Close() error
- func (t *TestSboxStruct) GetAllInbound() ([]sbox.Inboud, error)
- func (t *TestSboxStruct) GetAllOutbound() ([]sbox.Outbound, error)
- func (t *TestSboxStruct) GetStatus(user *sbox.Userconfig) (*sbox.Sboxstatus, error)
- func (t *TestSboxStruct) InboundStatus(tag string) error
- func (t *TestSboxStruct) OutboundStatus(string) error
- func (t *TestSboxStruct) RemoveInboud() error
- func (t *TestSboxStruct) RemoveOutboud() error
- func (t *TestSboxStruct) RemoveUser(user *sbox.Userconfig) (*sbox.Sboxstatus, error)
- func (t *TestSboxStruct) ShareLinkEncode(user *sbox.Userconfig, str string) (string, error)
- func (t *TestSboxStruct) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestBOTAPI ¶
type TestBOTAPI struct {
}
func NewTESTBOTAPI ¶
func NewTESTBOTAPI() *TestBOTAPI
func (*TestBOTAPI) AnswereCallbackCtx ¶
func (t *TestBOTAPI) AnswereCallbackCtx(ctx context.Context, Callbackanswere *botapi.Callbackanswere) error
func (*TestBOTAPI) Createkeyboard ¶
func (t *TestBOTAPI) Createkeyboard(keyboard *botapi.InlineKeyboardMarkup) ([]byte, error)
func (*TestBOTAPI) GetchatmemberCtx ¶
func (t *TestBOTAPI) GetchatmemberCtx(ctx context.Context, Userid int64, Chatid int64) (*tgbotapi.ChatMember, bool, error)
func (*TestBOTAPI) Makerequest ¶
func (t *TestBOTAPI) Makerequest(ctx context.Context, s, srt string, readcloser io.ReadCloser) (*tgbotapi.APIResponse, error)
func (*TestBOTAPI) SendContext ¶
type TestSboxStruct ¶
type TestSboxStruct struct {
}
func Newtestsbox ¶
func Newtestsbox() *TestSboxStruct
func (*TestSboxStruct) AddInboud ¶
func (t *TestSboxStruct) AddInboud()
func (*TestSboxStruct) AddInbound ¶
func (t *TestSboxStruct) AddInbound() error
func (*TestSboxStruct) AddOutbound ¶
func (t *TestSboxStruct) AddOutbound() error
func (*TestSboxStruct) AddUser ¶
func (t *TestSboxStruct) AddUser(user *sbox.Userconfig) (*sbox.Sboxstatus, error)
func (*TestSboxStruct) Close ¶
func (t *TestSboxStruct) Close() error
func (*TestSboxStruct) GetAllInbound ¶
func (t *TestSboxStruct) GetAllInbound() ([]sbox.Inboud, error)
func (*TestSboxStruct) GetAllOutbound ¶
func (t *TestSboxStruct) GetAllOutbound() ([]sbox.Outbound, error)
func (*TestSboxStruct) GetStatus ¶
func (t *TestSboxStruct) GetStatus(user *sbox.Userconfig) (*sbox.Sboxstatus, error)
Do not going to update database usage it will automaticaly doing by watchman
func (*TestSboxStruct) InboundStatus ¶
func (t *TestSboxStruct) InboundStatus(tag string) error
func (*TestSboxStruct) OutboundStatus ¶
func (t *TestSboxStruct) OutboundStatus(string) error
func (*TestSboxStruct) RemoveInboud ¶
func (t *TestSboxStruct) RemoveInboud() error
func (*TestSboxStruct) RemoveOutboud ¶
func (t *TestSboxStruct) RemoveOutboud() error
func (*TestSboxStruct) RemoveUser ¶
func (t *TestSboxStruct) RemoveUser(user *sbox.Userconfig) (*sbox.Sboxstatus, error)
func (*TestSboxStruct) ShareLinkEncode ¶
func (t *TestSboxStruct) ShareLinkEncode(user *sbox.Userconfig, str string) (string, error)
func (*TestSboxStruct) Start ¶
func (t *TestSboxStruct) Start() error
Click to show internal directories.
Click to hide internal directories.