telegram

package
v0.0.0-...-724a60f Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 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 Bot

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

func (*Bot) NewMessageToChannel

func (b *Bot) NewMessageToChannel(username string, text string) error

type Messenger

type Messenger interface {
	NewMessageToChannel(username string, text string) error
}

func NewBot

func NewBot(token string) Messenger

NewBot returns an instance of Bot which implements Messenger interface

Jump to

Keyboard shortcuts

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