Closed savelii closed 7 years ago
Hi! Initially, if text was missing args
were initialized with callback_query.data as a fallback.
This allowed to use router for callback_data:
router["someCallbackData"] = { }
But this approach had two problems:
So, we removed the fallback. Now this form should be used instead:
router[.callback_query(data: "someCallbackData")] = { }
args
should be replaced with context.update.callback_query?.data
I forgot to fix the example, thanks!
Hey, what the idea behind this pull request? https://github.com/zmeyc/telegram-bot-swift/pull/30/commits/b442d6763b437ee9a825425aaebcc494233c0bd0
Because of it example stop working https://github.com/zmeyc/telegram-bot-swift/blob/master/Examples/shopster-bot/Sources/shopster-bot/Controllers/MainController.swift
args is empty and always no reaction on inline keyboard press