telegram

package
v0.0.0-...-222ed67 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MovementFormatter

func MovementFormatter(v interface{}) string

MovementFormatter formats the given account movements to a string representation for telegram publisher

Types

type Publisher

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

Publisher is a message publisher using Telegram API

func NewPublisher

func NewPublisher(token string, fmt publisher.Formatter) *Publisher

NewPublisher creates a new instance of TelegramPublisher

func (*Publisher) PublishMessage

func (tp *Publisher) PublishMessage(userID string, i interface{})

PublishMessage sends the given message to the given telegram user

Jump to

Keyboard shortcuts

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