telegramChat

package
v0.0.0-...-af64693 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: MIT Imports: 2 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) IsUserAdmin

func (telegramChat *TelegramChat) IsUserAdmin(chatId int64, userId int64) bool

func (*TelegramChat) SendMessage

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

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