telegram

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 7 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 {
	TelegramBot         *tgbotapi.BotAPI
	TelegramChannel     string
	TelegramPreviewLink bool
	YcombinatorLink     bool
}

func NewClient

func NewClient(apiToken string, channel string, previewLink bool, ycombinatorLink bool) *TelegramClient

func (*TelegramClient) SendMessageForItem

func (t *TelegramClient) SendMessageForItem(item interface{}, url string, messagePrefix string, telegramChannel string) (tgbotapi.Message, error)

Jump to

Keyboard shortcuts

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