telegram

package
v0.0.0-...-ce24463 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdatesChannel tgbotapi.UpdatesChannel

Functions

func AcknowledgeCallbackQuery

func AcknowledgeCallbackQuery(callbackQuery *tgbotapi.CallbackQuery) error

AcknowledgeCallbackQuery sends back a (empty) callback ACK for the given query

func ClearKeyboardMarkup

func ClearKeyboardMarkup(message *tgbotapi.Message) error

ClearKeyboardMarkup assigns an empty keyboard markup to the given message

func GetFileDirectURL

func GetFileDirectURL(message *tgbotapi.Message) (string, error)

GetFileDirectURL wraps Bot API direct file download for size checking Note that tgbotapi fails if the maximum protocol size is exceeded

func SendFile

func SendFile(chatID int64, file interface{}) error

SendFile wraps Bot API file sending for less boilerplate

func SendMessage

func SendMessage(message Message) error

SendMessage wraps Bot API message sending for less boilerplate

Types

type Message

type Message struct {
	ChatID         int64
	Text           string
	ParseMode      string
	KeyboardMarkup interface{}
}

Jump to

Keyboard shortcuts

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