chat

package
v0.0.0-...-60df22a Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 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 Chat

type Chat interface {
	SendMessage(user, message string)
	SendFile(user, file string)
}

type TelegramBot

type TelegramBot struct {
	Logger logging.Logger
	// contains filtered or unexported fields
}

func NewTelegramBot

func NewTelegramBot(conf *config.Config) *TelegramBot

func (*TelegramBot) SendFile

func (tb *TelegramBot) SendFile(user, filename string)

func (*TelegramBot) SendMessage

func (tb *TelegramBot) SendMessage(user, msg string)

func (*TelegramBot) Start

func (tb *TelegramBot) Start()

Jump to

Keyboard shortcuts

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