bot

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package bot provides a simple package for interacting with the Telegram Bot API.

Index

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 NewClient

func NewClient(botToken string) (*Client, error)

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) GetToken

func (c *Client) GetToken() string

func (*Client) UploadFileBuffer

func (c *Client) UploadFileBuffer(chatId int64, fileName string, fileData []byte) (v1.MessageIdentifier, error)

func (*Client) UploadFileReader

func (c *Client) UploadFileReader(chatId int64, fileName string, fileReader io.Reader) (v1.MessageIdentifier, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL