feat: Added HTML parse_mode

This commit is contained in:
2025-01-17 11:51:07 +03:00
parent 10be9e3047
commit 836de44978
3 changed files with 18 additions and 6 deletions

View File

@ -23,8 +23,9 @@ func GetMe() error {
func SendMessage(chatId, message string) error {
_, err := client.R().
SetQueryParams(map[string]string{
"chat_id": chatId,
"text": message,
"chat_id": chatId,
"text": message,
"parse_mode": "HTML",
}).
Get(fmt.Sprintf("/bot%s/sendMessage", config.AppConfig.Telegram.Token))