Set default mode to markdown2

This commit is contained in:
Thilo Karraß 2020-10-28 15:19:51 +01:00
parent edb2c61550
commit 1ba9536622
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ func (b *Bot) SendMessage(chatid int64, message string, replyto int64) (*Message
//call.Param(prm)
call.Parameters["chat_id"] = fmt.Sprintf("%v", chatid)
call.Parameters["text"] = message
call.Parameters["parse_mode"] = "MarkdownV2"
ret := &MessageResponse{}
err := call.Fire(context.Background(), ret)
if !err.Ok() {

View File

@ -35,7 +35,7 @@ func (b *Bot) ShortPoll(ctx context.Context, interval int) {
}
}
// Serve the Update channel using long polling
// Serve the Update channel using long polling, with a timeout given in seconds
func (b *Bot) LongPoll(ctx context.Context, timeout int64) {
for {
select {