Jump to content

barjoman

Members
  • Posts

    3
  • Joined

  • Last visited

barjoman's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I would like to ask for the installation of the python telegram bot package. cPanel username: barjoman Main domain: barjoman.heliohost.org Server: Tommy Version of python: 3.6 The package is called python-telegram-bot https://pypi.org/project/python-telegram-bot/ pip install python-telegram-bot Many Thanks, Ben
  2. So I played around a bit more and I was able to get the following script to run: #!/usr/bin/python3.6 print("Content-Type: text/html\n\n") print("Hello World!") Something else that I noticed in case it applies to anyone else is that if you are using sqlite, it has to have the .sqlite3 extension. I was previously using a .db extension on my local machine and it worked fine, but it wouldn't work on HelioHost. Having said all of this, I'm still not able to get my bot to run. I'm assuming this is because python-telegram-bot is not installed. Would someone be able to help me out with installing this?
  3. Hi. I apologize in advance as I'm completely new to this. I've written a functioning Telegram Bot using the python-telegram-bot wrapper (https://pypi.org/project/python-telegram-bot/) Searching through the forums, I've found a few posts with some hints about how to get the bot to run: https://www.helionet.org/index/topic/30316-johnny-python-telegram/ https://www.helionet.org/index/topic/34304-how-to-run-a-python-script/ Unfortunately, I'm still not clear on how to get this to work. Here is what I've tried: I've created a file in the cgi-bin folder through cpanel called testbot.py into which I've copied my code. I've also added "#!/usr/bin/python3.6" to the top However, going to http://barjoman.heliohost.org/cgi-bin/testbot.py gives me a 500 error: I was also unable to get it to run through a cronjob, although I'm guessing this is because of the error above. If anyone can assist, it would be appreciated. Thanks, Ben User: barjoman Server: Tommy
×
×
  • Create New...