telepher

package module
Version: v0.0.0-...-6e277dc Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

README

go-telegram-bot

Documentation

Index

Constants

View Source
const (
	DefaultBaseUrl     = "https://api.telegram.org/bot"
	DefaultBaseFileUrl = "https://api.telegram.org/file/bot"
)

Variables

View Source
var DefaultClient = http.DefaultClient

Functions

func Bot

func Bot(Token string, pref *Pref) (*bot, error)

Types

type Pref

type Pref struct {
	BaseURL     string
	BaseFileURL string
	Client      *http.Client
}

type User

type User struct {
	ID                 int    `json:"id"`
	IsBot              bool   `json:"is_bot"`
	FirstName          string `json:"first_name"`
	UserName           string `json:"username"`
	CanJoinGroups      bool   `json:"can_join_groups"`
	CanReadAllMessages bool   `json:"can_read_all_group_messages"`
	SupportsInline     bool   `json:"supports_inline_queries"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL