Giter VIP home page Giter VIP logo

Comments (4)

Waterboy1602 avatar Waterboy1602 commented on July 28, 2024

I don't totally get the problem. What does the bot still do or doesn't do it after adding the Russian translation? Do you mean that the message are still in English? Or do you mean that some commands don't work anymore?

from addarr.

olegosipenko87 avatar olegosipenko87 commented on July 28, 2024

if i change:

en:
    Start: Start
    Stop: Stop
    Movie: Фильм
    Serie: Series

i get this error when bot starts

pi@raspberrypi:/opt/addarr $ python3 addarr.py
Traceback (most recent call last):
  File "addarr.py", line 551, in <module>
    main()
  File "addarr.py", line 62, in main
    CommandHandler(transcript["Movie"], startSerieMovie),
  File "/usr/local/lib/python3.7/dist-packages/telegram/ext/commandhandler.py", line 162, in __init__
    raise ValueError('Command is not a valid bot command')
ValueError: Command is not a valid bot command

from addarr.

olegosipenko87 avatar olegosipenko87 commented on July 28, 2024

and there is another error.
if i change:

en:
    Start: Start
    Stop: Стоп
    Movie: Movie
    Serie: Series

the bot starts normally, but the stop button does not work when communicating with the bot. No reaction to her

from addarr.

Waterboy1602 avatar Waterboy1602 commented on July 28, 2024

I've found this in the Telegram docs about the CommandHandler function:

Raises ValueError - when command is too long or has illegal chars. –

I have a feeling this has something to do with it. The weird part is that I can nowhere find which chars are defined as illegal, but I assume those Russian chars are. I fear there is no other solution then to keep using the English commands.

You can still translate the other lines in Russian, altough I understand that's not everything.

from addarr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.