Documentation
¶
Index ¶
- type Response
- type Telegram
- func (r *Telegram) SendHtml(body string) error
- func (r *Telegram) SendMarkdown(body string) error
- func (r *Telegram) SendText(text string) error
- func (r *Telegram) SetChatId(chatId string) *Telegram
- func (r *Telegram) SetDebug(debug bool) *Telegram
- func (r *Telegram) SetDisableWebPreview(disable bool) *Telegram
- func (r *Telegram) SetGet(get bool) *Telegram
- func (r *Telegram) SetProxy(proxy string) *Telegram
- func (r *Telegram) SetSilently(silent bool) *Telegram
- func (r *Telegram) UseHost(url string) notice.Noticer
- func (r *Telegram) UseSecret(secret string) notice.Noticer
- func (r *Telegram) UseToken(token string) notice.Noticer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
func NewTelegram ¶
func NewTelegramChatId ¶
func (*Telegram) SendMarkdown ¶
SendMarkdown The supported Markdown syntax is detailed in https://core.telegram.org/bots/api#markdownv2-style
func (*Telegram) SetChatId ¶
SetChatId Integer or String, Unique identifier for the target chat or username of the target channel (in the format @channelusername)
func (*Telegram) SetDisableWebPreview ¶
SetDisableWebPreview Disables link previews for links in this message
func (*Telegram) SetSilently ¶
SetSilently Sends the message silently. Users will receive a notification with no sound.
Click to show internal directories.
Click to hide internal directories.