ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang
MIT License
165 stars 24 forks source link

answerInlineQuery don't support cyrillic characters in title and content #25

Closed altfoxie closed 5 years ago

altfoxie commented 5 years ago

issue in title. code:

proc inlineHandler(b: Telebot, u: InlineQuery) {.async.} =
  var res: InlineQueryResultArticle
  res.kind = "article"
  res.title = "тест"
  res.id = "1"
  res.inputMessageContent = InputTextMessageContent("тест").some
  var results: seq[InlineQueryResultArticle]
  results.add(res)
  discard waitFor b.answerInlineQuery(u.id, results)