Documentation
¶
Index ¶
- Variables
- type TelegramStorage
- func (t *TelegramStorage) Delete(ctx context.Context, detail *types.StorageDetail) error
- func (t *TelegramStorage) GetFile(ctx context.Context, detail *types.StorageDetail) ([]byte, error)
- func (t *TelegramStorage) Init(ctx context.Context)
- func (t *TelegramStorage) Save(ctx context.Context, filePath string, _ string) (*types.StorageDetail, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Bot *telego.Bot ChatID telego.ChatID )
Functions ¶
This section is empty.
Types ¶
type TelegramStorage ¶
type TelegramStorage struct{}
func (*TelegramStorage) Delete ¶
func (t *TelegramStorage) Delete(ctx context.Context, detail *types.StorageDetail) error
func (*TelegramStorage) GetFile ¶
func (t *TelegramStorage) GetFile(ctx context.Context, detail *types.StorageDetail) ([]byte, error)
func (*TelegramStorage) Init ¶
func (t *TelegramStorage) Init(ctx context.Context)
func (*TelegramStorage) Save ¶
func (t *TelegramStorage) Save(ctx context.Context, filePath string, _ string) (*types.StorageDetail, error)
Click to show internal directories.
Click to hide internal directories.