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:
parent
ee88fc6441
commit
dee2f438e4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user