telegramChat

package
v0.0.0-...-e975c8b Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelegramChat

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

func MakeTelegramChat

func MakeTelegramChat(apiToken string) (bot *TelegramChat, outErr error)

func (*TelegramChat) GetBot

func (telegramChat *TelegramChat) GetBot() *tgbotapi.BotAPI

func (*TelegramChat) GetBotUsername

func (telegramChat *TelegramChat) GetBotUsername() string

func (*TelegramChat) SendDialog

func (telegramChat *TelegramChat) SendDialog(dialog *dialog.Dialog, chatId int64)

func (*TelegramChat) SendMessage

func (telegramChat *TelegramChat) SendMessage(chatId int64, message string)

func (*TelegramChat) SendQuestion

func (telegramChat *TelegramChat) SendQuestion(db *database.Database, questionId int64, usersChatIds []int64)

func (*TelegramChat) SetDebugModeEnabled

func (telegramChat *TelegramChat) SetDebugModeEnabled(isEnabled bool)

Jump to

Keyboard shortcuts

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