Versions in this module Expand all Collapse all v2 v2.0.0 Jun 18, 2023 Changes in this version + const APIGetMe + const APISendMessage + const ParseModeHTML + const ParseModeMarkdownV2 + const ParseModeText + const PluginTelegram + const ServerURL + func New(ctx context.Context, cfg *handlerTY.Config) (handlerTY.Plugin, error) + type Config struct + ChatIDs []string + Token string + type Message struct + ChatID string + DisableNotification bool + DisableWebPagePreview bool + ParseMode string + ReplyToMessageID int + Text string + type Response struct + Description string + ErrorCode int + IsOK bool + Result map[string]interface{} + type TelegramClient struct + Config *Config + func (c *TelegramClient) Close() error + func (c *TelegramClient) GetMe() (*User, error) + func (c *TelegramClient) Post(parameters map[string]interface{}) error + func (c *TelegramClient) SendMessage(message *Message) error + func (c *TelegramClient) Start() error + func (c *TelegramClient) State() *types.State + func (p *TelegramClient) Name() string + type User struct + FirstName string + ID int + IsBot bool + LanguageCode string + LastName string + Username string