Documentation ¶
Overview ¶
Package bot provides a simple package for interacting with the Telegram Bot API.
Index ¶
- type Client
- func (c *Client) DownloadFileBuffer(identifier v1.MessageIdentifier, copyChat int64) (*v1.DownloadBufferResult, error)
- func (c *Client) DownloadFileReader(identifier v1.MessageIdentifier, copyChat int64) (*v1.DownloadReaderResult, error)
- func (c *Client) GetToken() string
- func (c *Client) UploadFileBuffer(chatId int64, fileName string, fileData []byte) (v1.MessageIdentifier, error)
- func (c *Client) UploadFileReader(chatId int64, fileName string, fileReader io.Reader) (v1.MessageIdentifier, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DownloadFileBuffer ¶
func (c *Client) DownloadFileBuffer(identifier v1.MessageIdentifier, copyChat int64) (*v1.DownloadBufferResult, error)
func (*Client) DownloadFileReader ¶
func (c *Client) DownloadFileReader(identifier v1.MessageIdentifier, copyChat int64) (*v1.DownloadReaderResult, error)
func (*Client) UploadFileBuffer ¶
func (*Client) UploadFileReader ¶
Click to show internal directories.
Click to hide internal directories.