Set default mode to markdown2
This commit is contained in:
parent
edb2c61550
commit
1ba9536622
|
@ -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() {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user