telebot v2.3 Release Notes

Release Date: 2020-06-10 // almost 4 years ago
  • 🔄 Changelog

    Bot API 4.9

    ⚡️ Special ErrTrueResult error for updating methods

    Extended b.Edit() function:

    b.Edit(m, m.Text, newMarkup)b.Edit(m, "new \<b\>text\</b\>", tb.ModeHTML)b.Edit(m, &tb.ReplyMarkup{...})b.Edit(m, &tb.Photo{File: ...})b.Edit(m, tb.Location{42.1337, 69.4242})
    

    0️⃣ Default parse mode:

    pref := tb.Settings{ Token: "", ParseMode: tb.ModeMarkdown, }b, \_ := tb.NewBot(pref)b.Send(to, "\*text\*") // default markdown modeb.Send(to, "\<b\>text\</b\>", tb.ModeHTML) // forced html mode
    

    Verbose mode for upcoming requests:

    pref := tb.Settings{ Token: "", Verbose: true, }b, \_ := tb.NewBot(pref)b.Notify(to, tb.Typing)
    
    [verbose] telebot: sent request
    Method: sendChatAction
    Params: {
        "action": "typing",
        "chat_id": "..."
    }
    Response: {
        "ok": true,
        "result": true
    }
    

    🛠 Fixes

    • ⚡️ Updating methods unmarshalling fix (#298)
    • SuccessfulPayment currency type fix (#299)
    • 🛠 Stickers API minor fixes