easy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EasyApi

type EasyApi struct {
	// contains filtered or unexported fields
}

func NewEasyApi

func NewEasyApi(api *tgbotapi.BotAPI, lastMessageStorage lastMessageStorage) *EasyApi

func (EasyApi) AnswerCallback

func (a EasyApi) AnswerCallback(update tgbotapi.Update, text string)

func (EasyApi) AnswerEmptyCallback

func (a EasyApi) AnswerEmptyCallback(update tgbotapi.Update)

func (*EasyApi) DownloadFileString

func (a *EasyApi) DownloadFileString(fileId string) (string, error)

func (EasyApi) SendKeyboard

func (a EasyApi) SendKeyboard(update tgbotapi.Update, keyboard EasyKeyboard, text string, tryInline bool)

func (EasyApi) SendMessage

func (a EasyApi) SendMessage(update tgbotapi.Update, text string) (tgbotapi.Message, error)

func (EasyApi) SendMessageCommand

func (a EasyApi) SendMessageCommand(update tgbotapi.Update, text string, command string) (tgbotapi.Message, error)

type EasyKeyboard

type EasyKeyboard struct {
	// contains filtered or unexported fields
}

func (*EasyKeyboard) Add

func (k *EasyKeyboard) Add(text string, data string)

func (*EasyKeyboard) AddSplit

func (k *EasyKeyboard) AddSplit()

func (EasyKeyboard) InlineKeyboardMarkup

func (k EasyKeyboard) InlineKeyboardMarkup() tgbotapi.InlineKeyboardMarkup

func (*EasyKeyboard) SetWidth

func (k *EasyKeyboard) SetWidth(width int) *EasyKeyboard

type Key

type Key struct {
	// contains filtered or unexported fields
}

type KeySplit

type KeySplit struct{}

Jump to

Keyboard shortcuts

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