Documentation
¶
Index ¶
- Constants
- type ChannelPost
- type Client
- func (ctx *Client) ChatDocument(messageID int) (*tg.Document, error)
- func (ctx *Client) Close()
- func (ctx *Client) DirectRich(html string, keyboard *types.InlineKeyboardMarkup, banner []byte) error
- func (ctx *Client) DownloadDocument(document *tg.Document, dest string, onProgress func(percentage int64)) error
- func (ctx *Client) DropStatus() error
- func (ctx *Client) GetChannelPost(username string, id int) (*ChannelPost, error)
- func (ctx *Client) LatestChannelPost(username string) (int, error)
- func (ctx *Client) LogMessage(text string) error
- func (ctx *Client) NextChannelPost(username string, after int) (*ChannelPost, error)
- func (ctx *Client) OnMessage(handler func(client *gobotapi.Client, update types.Message))
- func (ctx *Client) PublishRich(html string, withNotification bool, keyboard *types.InlineKeyboardMarkup, ...) error
- func (ctx *Client) RestoreStatus(messageID int64, persist func(int64) error)
- func (ctx *Client) SendDocument(chatID int64, name string, data []byte, caption string) error
- func (ctx *Client) UpdateRichStatus(html string, button *StatusButton)
- func (ctx *Client) UpdateUptime(online bool, exitReason string)
- type StatusButton
Constants ¶
View Source
const BannerSource = "tg://photo?id=" + bannerMediaID
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DirectRich ¶
func (*Client) DownloadDocument ¶
func (*Client) DropStatus ¶
func (*Client) GetChannelPost ¶
func (ctx *Client) GetChannelPost(username string, id int) (*ChannelPost, error)
func (*Client) LatestChannelPost ¶
func (*Client) LogMessage ¶
func (*Client) NextChannelPost ¶
func (ctx *Client) NextChannelPost(username string, after int) (*ChannelPost, error)
func (*Client) PublishRich ¶
func (*Client) RestoreStatus ¶
func (*Client) SendDocument ¶
func (*Client) UpdateRichStatus ¶
func (ctx *Client) UpdateRichStatus(html string, button *StatusButton)
func (*Client) UpdateUptime ¶
type StatusButton ¶
Source Files
¶
- chat_document.go
- connect_mtproto.go
- context.go
- direct_rich.go
- download_document.go
- drop_status.go
- fetch_channel_posts.go
- get_channel_post.go
- latest_channel_post.go
- listeners.go
- log_message.go
- mtproto_client.go
- next_channel_post.go
- publish_rich.go
- resolve_channel.go
- restore_status.go
- send_document.go
- send_rich.go
- supervise_mtproto.go
- update_rich_status.go
- update_uptime.go
Click to show internal directories.
Click to hide internal directories.