Open vort3 opened 8 years ago
Would you mind posting the error message? Thanks so much
It repeats the same thing infinitely:
... Traceback (most recent call last):
File "telegram_bot.py", line 31, in
Sorry for that incorrect coding at last line, I have Russian windows and it has some troubles with cyrillic in console.
Did you modify apikey.csv? You get a key from BotFather on Telegram.
You need to replace the dummy key in there with a valid one
I replaced a key with one I got from @BotFather , and it works perfectly if I invoke script as "telegram_bot.py". I get error only when use "python.exe telegram_bot.py". Notice "python.exe" at beginning :-)
I'm only confused because the only way of running it is with "python.exe telegram_bot.py"
Running it without specifying Python shouldn't do much of anything.
The only other troubleshooting thing I can suggest right now is a silly question: the device you're running the bot on is connected to the internet, right?
Of course :-) That's not a big problem for now, I run it with "telegram_bot.py" and it works fine. But something is wrong with that…
As long as it works for you. When you run it the other way it works as intended? You can send a message (try /ping) to a chat with the bot and it replies?
Yep, bot works and does everything without any problems, as intended.
When I run it as
it works well, but if I do
it fails. Can this be fixed?…