We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 20.04
3.8.10
2.25.1
there should be any way to set custom url for each games
i get error if i try to use any method
set game shortname, bot token. then bot = Bot(token=token) dp = Dispatcher(bot, storage=MemoryStorage()) start msg handler game command: @dp.callback_query_handler(lambda c: c.data and c.data.startswith('game')) async def process_callback(callback_query: types.CallbackQuery): await bot.answer_callback_query(callback_query.id, url=url) ......
@dp.inline_handler() async def inline_query_handler(inline_query: types.InlineQuery): games = [ types.InlineQueryResultGame( id='game1', game_short_name='demo1' ), types.InlineQueryResultGame( id='game2', game_short_name='demo2' ), ] await bot.answer_inline_query(inline_query.id, results=games)
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Operating system
Ubuntu 20.04
Python version
3.8.10
aiogram version
2.25.1
Expected behavior
there should be any way to set custom url for each games
Current behavior
i get error if i try to use any method
Steps to reproduce
set game shortname, bot token.
then bot = Bot(token=token)
dp = Dispatcher(bot, storage=MemoryStorage())
start msg handler
game command:
@dp.callback_query_handler(lambda c: c.data and c.data.startswith('game'))
async def process_callback(callback_query: types.CallbackQuery):
await bot.answer_callback_query(callback_query.id, url=url)
......
Code example
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: