cyclic-software / starter-telegram-bot

Cyclic starter telegram bot
MIT License
67 stars 2.71k forks source link

Python based telegram bot #7

Open KishorJena opened 1 year ago

KishorJena commented 1 year ago

I tried to deploy the telegram bot written in Python but I get error as the Python command is not found I could not find any dedicated repo for a Python telegram bot like nodejs. I had to choose Python 3.10.x under the same template where nodejs is available.

and also there is no option for choosing main file for python and also it shows files and folder of nodejs template image

seekayel commented 1 year ago

Was this a python telegram bot you wrote or this starter?

If it was your repo I think the best place to debug with you is on discord: https://discord.cyclic.sh

This repo is nodejs only.

KishorJena commented 1 year ago

Thanks for reply @seekayel its my own written bot using Python. I tried 'starter' but it contains the nodeJS (even if i choose discord bot) files only. it just allows me to choose python, but the files and folders are the same for Python as well.js files, package.json etc. Then i tried to link my own repo from github. but it shows something like 'line 2: python command not found'.

By the way, the bot works fine if host it from my pc (i.e. vscode)

Log on cyclic.sh image

adarshchri commented 11 months ago

Hey @KishorJena can you show the step to deploy the Python telegram bot on Cyclic it help us

KishorJena commented 11 months ago

Hey @KishorJena can you show the step to deploy the Python telegram bot on Cyclic it help us

I forgot. But there is option to link your own bot. there you can can link your git repo which contains python bot with requirements.txt. Dont know how but once the bot worked successfully. I was able to see logs. But later it never worked. shows python command not found. Cyclic.sh should provide template like nodejs

PS: and yeah you should run bot on some port