Documentation ¶
Index ¶
- type Telegram
- func (t *Telegram) Connect(token string, isDebug bool) (*tgbotapi.BotAPI, error)
- func (t *Telegram) GetUpdate(client *tgbotapi.BotAPI) tgbotapi.Update
- func (t *Telegram) Send(client *tgbotapi.BotAPI, chatID int64, text string) error
- func (t *Telegram) SendReplay(client *tgbotapi.BotAPI, chatID int64, replayID int, text string) error
- func (t *Telegram) ShareImage(client *tgbotapi.BotAPI, chatID int64, fileID string) error
- func (t *Telegram) UploadImageByte(client *tgbotapi.BotAPI, chatID int64, photoBytes []byte) error
- func (t *Telegram) UploadImagePath(client *tgbotapi.BotAPI, chatID int64, photoPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Telegram ¶
type Telegram struct{}
func (*Telegram) SendReplay ¶
func (t *Telegram) SendReplay(client *tgbotapi.BotAPI, chatID int64, replayID int, text string) error
SendReplay message to chat
func (*Telegram) ShareImage ¶
ShareImage exist a photo like http://myphoto.com/photo.png
func (*Telegram) UploadImageByte ¶
UploadImageByte a photo like bytes array
Click to show internal directories.
Click to hide internal directories.