Documentation ¶
Index ¶
- func GetMsgContactTitle(msg tgbotapi.Message) (retVal string)
- type TelegramBot
- func (this TelegramBot) CheckUpdates() (err error)
- func (this *TelegramBot) Connect() (err error)
- func (this TelegramBot) GetMessages() (retVal []tgbotapi.Message, err error)
- func (this TelegramBot) Ping() (err error)
- func (this TelegramBot) Send(msg tgbotapi.MessageConfig) (err error)
- func (this TelegramBot) SendFile(msg tgbotapi.DocumentConfig) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMsgContactTitle ¶
func GetMsgContactTitle(msg tgbotapi.Message) (retVal string)
Types ¶
type TelegramBot ¶
type TelegramBot struct {
// contains filtered or unexported fields
}
func NewTelegramBot ¶
func NewTelegramBot(logPar logs.Logger, settingsHandlerPar types.Settings) (retVal *TelegramBot)
func (TelegramBot) CheckUpdates ¶
func (this TelegramBot) CheckUpdates() (err error)
func (*TelegramBot) Connect ¶
func (this *TelegramBot) Connect() (err error)
func (TelegramBot) GetMessages ¶
func (this TelegramBot) GetMessages() (retVal []tgbotapi.Message, err error)
func (TelegramBot) Ping ¶
func (this TelegramBot) Ping() (err error)
func (TelegramBot) Send ¶
func (this TelegramBot) Send(msg tgbotapi.MessageConfig) (err error)
func (TelegramBot) SendFile ¶
func (this TelegramBot) SendFile(msg tgbotapi.DocumentConfig) (err error)
Click to show internal directories.
Click to hide internal directories.