question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

i18n translation other than en break bot commands

See original GitHub issue
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/ubuntu/titus/BTB-manager-telegram/btb_manager_telegram/__main__.py", line 149, in <module>
    main()
  File "/home/ubuntu/titus/BTB-manager-telegram/btb_manager_telegram/__main__.py", line 97, in main
    from btb_manager_telegram import handlers
  File "/home/ubuntu/titus/BTB-manager-telegram/btb_manager_telegram/handlers.py", line 665, in <module>
    FALLBACK_HANDLER = CommandHandler(i18n.t("keyboard.fb_cancel"), cancel)
  File "/home/ubuntu/titus/BTB-manager-telegram/venv/lib/python3.8/site-packages/telegram/ext/commandhandler.py", line 163, in __init__
    raise ValueError('Command is not a valid bot command')
ValueError: Command is not a valid bot command

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
titulebolidecommented, Nov 19, 2021

Pushed 😃 thanks for the help

0reactions
titulebolidecommented, Nov 19, 2021

Screenshot_20211119_161031_org.telegram.messenger.jpg Did the trick

Read more comments on GitHub >

github_iconTop Results From Across the Web

I18n in Go: Managing Translations - Alex Edwards
In this tutorial I want to explain how you can use golang.org/x/text packages to manage translations in your application. Specifically:.
Read more >
Angular i18n: internationalization & localization with examples
Angular I18n uses the built-in module for internationalization. Learn how to set up I18n, perform translations, and deploy the app.
Read more >
Work with translation files - Angular
Copy the source language file to create a translation file for each language ... The extract-i18n command creates files in the following translation...
Read more >
i18next/i18next-scanner: Scan your code, extract ... - GitHub
Scan your code, extract translation keys/values, and merge them into i18n resource files. - GitHub - i18next/i18next-scanner: Scan your code, ...
Read more >
Rails Internationalization (I18n) API - Ruby on Rails Guides
The I18n library will use English as a default locale, i.e. if you don't set a different locale, :en will be used for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found