gmbot

package
v0.100.18 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelegramClient

type TelegramClient struct {
	BotToken string           `json:"botToken"`
	ChatId   int64            `json:"chatId"`
	BotApi   *tgbotapi.BotAPI `json:"botApi"`
}

func InitTelegramClient

func InitTelegramClient(botToken string, chatId int64) (*TelegramClient, error)

func (*TelegramClient) SendMarkdownMessage

func (tg *TelegramClient) SendMarkdownMessage(message string) error

Jump to

Keyboard shortcuts

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