telegram

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

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 New

func New(host string, token string) *Client

func (*Client) SendMessage

func (c *Client) SendMessage(chatID int, text string) error

func (*Client) Updates

func (c *Client) Updates(offset int, limit int) ([]Update, error)

type Update

type Update struct {
	ID      int64  `json:"update_id"`
	Message string `json:"message"`
}

type UpdateOut

type UpdateOut struct {
	Ok     bool     `json:"ok"`
	Result []Update `json:"result"`
}

Jump to

Keyboard shortcuts

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