Documentation
¶
Index ¶
- func BuildTelegramTable(rows [][]string) string
- func SendEmailHTML(auth SmtpAuth, message, subject string, from mail.Address, to ...mail.Address) error
- func SenndEmailMessage(auth SmtpAuth, mes *email.Message) error
- type Bot
- func (s *Bot) GetAPI() *tgbotapi.BotAPI
- func (s *Bot) SendDocumentFromBytes(chatID int64, data []byte, filename string, caption string) (tgbotapi.Message, error)
- func (s *Bot) SendDocumentFromFile(chatID int64, filePath string, caption string) (tgbotapi.Message, error)
- func (s *Bot) SendDocumentFromURL(chatID int64, fileURL string, caption string) (tgbotapi.Message, error)
- func (s *Bot) SendHTMLMessage(chatID int64, text string) (tgbotapi.Message, error)
- func (s *Bot) SendPhotoFromBytes(chatID int64, data []byte, filename string, caption string) (tgbotapi.Message, error)
- func (s *Bot) SendPhotoFromFile(chatID int64, filePath string, caption string) (tgbotapi.Message, error)
- func (s *Bot) SendPhotoFromURL(chatID int64, fileURL string, caption string) (tgbotapi.Message, error)
- func (s *Bot) SendTextMessage(chatID int64, text string) (tgbotapi.Message, error)
- type SmtpAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTelegramTable ¶
BuildTelegramBoxTable строит ASCII-таблицу с рамками для Telegram HTML <pre>
func SendEmailHTML ¶
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
func (*Bot) SendDocumentFromBytes ¶
func (*Bot) SendDocumentFromFile ¶
func (*Bot) SendDocumentFromURL ¶
func (*Bot) SendHTMLMessage ¶
func (*Bot) SendPhotoFromBytes ¶
func (*Bot) SendPhotoFromFile ¶
func (*Bot) SendPhotoFromURL ¶
Click to show internal directories.
Click to hide internal directories.