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.Param(prm)
|
||||||
call.Parameters["chat_id"] = fmt.Sprintf("%v", chatid)
|
call.Parameters["chat_id"] = fmt.Sprintf("%v", chatid)
|
||||||
call.Parameters["text"] = message
|
call.Parameters["text"] = message
|
||||||
|
call.Parameters["parse_mode"] = "MarkdownV2"
|
||||||
ret := &MessageResponse{}
|
ret := &MessageResponse{}
|
||||||
err := call.Fire(context.Background(), ret)
|
err := call.Fire(context.Background(), ret)
|
||||||
if !err.Ok() {
|
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) {
|
func (b *Bot) LongPoll(ctx context.Context, timeout int64) {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user