Error compiling inline_query_with_input_message_content example
keshon opened this issue · comments
Innokentiy Sokolov commented
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)
Innokentiy Sokolov commented
Thanks!