ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error compiling inline_query_with_input_message_content example

keshon opened this issue · comments

Example examples/inline_query_with_input_message_content.nim cannot be compiled


throwing error for this line :

Error: type mismatch: got <TeleBot, proc (b: TeleBot, u: InlineQuery): Future[system.void]{.gcsafe, locks: <unknown>.}>
but expected one of:
proc onInlineQuery(b: TeleBot; cb: InlineQueryCallback)
  first type mismatch at position: 2
  required type for cb: InlineQueryCallback
  but expression 'inlineHandler' is of type: proc (b: TeleBot, u: InlineQuery): Future[system.void]{.gcsafe, locks: <unknown>.}

expression: onInlineQuery(bot, inlineHandler)