telegrambot

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageClient

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

MessageClient - адаптер для отправки сообщений через telegram.

func NewMessageClient

func NewMessageClient(apiToken string) (client *MessageClient, err error)

NewMessageClient - создаёт объект MessageClient.

func (*MessageClient) SendToChat

func (c *MessageClient) SendToChat(ctx context.Context, chatKey, message string) error

SendToChat - отправляет сообщение в указанный чат.

Jump to

Keyboard shortcuts

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