1
0
mirror of https://github.com/ManyakRus/starter.git synced 2024-11-21 18:16:31 +02:00

сделал msg.ParseMode = "HTML"

This commit is contained in:
Nikitin Aleksandr 2024-11-14 14:30:20 +03:00
parent ee88fc6441
commit dee2f438e4

View File

@ -122,6 +122,7 @@ func SendMessageChatID(ChatID int64, Text string) (int, error) {
var err error
msg := botapi.NewMessage(ChatID, Text)
msg.ParseMode = "HTML"
Message, err := Client.Send(msg)
if err != nil {
@ -141,6 +142,7 @@ func SendMessage(UserName string, Text string) (int, error) {
var err error
msg := botapi.NewMessageToChannel(UserName, Text)
msg.ParseMode = "HTML"
Message, err := Client.Send(msg)
if err != nil {