This Telegram bot is built using the python-telegram-bot
library version 20.7 and performs various tasks within Telegram.
- This bot can be found as 𝕮𝖎𝖗𝖎 "希里" on Telegram.
- Checkout https://github.com/bishalqx980/python
>> If you liked this project then please give it a star...!
- Group Management
- It has just everything...
- AI
- ChatGPT
- AI photo imagine
- Misc
- Get any movie info
- Translate any language
- Decode, Encode (base64)
- Short any url
- Ping any url
- Calculate basic math
- Take webshot (website screenshot)
- Get any location weather info
- Download YouTube video
- Search YouTube video
- Generate QR code (image)
- Convert image into a link (public)
- Convert text into a link
- Whisper user in group chat (secret message)
- Search games link for PS3 & other consoles
- Much more...
ℹ️ Todo: add more features...
• • • • • • • • • • • • • • • • • • • •
Setup 📦
-
Download & rename
sample_config.env
toconfig.env
then fillupconfig.env
file value's⚠️ Don't share or upload theconfig.env
any public place or repository
-
BOT_TOKEN
Get from https://t.me/BotFather E.g. 123456:abcdefGHIJK... -
OWNER_ID
Get from bot by /id command E.g. 2134776547 -
OWNER_USERNAME
Your Username E.g. paste like bishalqx980 not @bishalqx980 -
MONGODB_URI
Get from https://www.mongodb.com/ -
DB_NAME
anything E.g. MissCiri_db
Local deploy
----- Windows -----
- Required
python 3.11
or later - Open
tgbot
directory on cmd - Run on cmd
pip install -r requirements.txt
- Finally
start.cmd
----- Linux -----
- Required
python 3.11
or later - Open
tgbot
directory on shell pip install -r requirements.txt
- Finally
bash start.sh
Render deploy
- Signin/Signup on https://render.com/
- Goto dashboard & create a New
Web Service
- Select
Build and deploy from a Git repository
>Public Git repository
https://github.com/bishalqx980/tgbot
Branch
mainRuntime
Python 3Build Command
pip install -r requirements.txtStart Command
python main.pyInstance Type
Free (maybe paid)⚠ Advanced option >
Add secret file
filename:config.env
- file content: paste all content fromsample_config.env
(make sure you filled up everything)[ If you face anyproblem accessing
Advanced option
then just click onCreate Web Service
then fromEnvironment
>Secret Files
add the config.env values... Then restart/redeploy the web service ]Finally click on Create Web Service & wait few sec for deployment & Done | Enjoy 🎉
Heroku deploy
- Signin/Signup on http://heroku.com/
- Give a star ⭐ and fork this repo https://github.com/bishalqx980/tgbot
- Goto your forked repo
settings
>General
> Check ✅Template repository
- Come back and on the right top corner you will see a green button name
Use this template
, click on that and create a new private repo with these files - On that private repo upload your
config.env
file and make sure required all values are filled up - Then goto the private repo
settings
>secrets and variables
>Actions
- Click on
New respository secret
- Name:
HEROKU_EMAIL
- Secret:
your_heroku_email
- Repeat the step and add
HEROKU_APP_NAME
- unique name eg. tgbot007oc-bishalqx980 - Add
HEROKU_API_KEY
- get from https://dashboard.heroku.com/account scroll downAPI Key
click onReveal
button then copy the value and paste it...
- Name:
- Finally click on
Actions
tab from the top, selectDeploy to heroku
, on right side click onRun workflow
> green buttonRun workflow
- Now wait for deployment complete... (you can check log here https://dashboard.heroku.com/apps/HEROKU_APP_NAME/logs)
⚠️ AddServer url
from /bsettings before heroku shutdown... then restart dyno (heroku)
Enjoy 🍾
- Required
-
After deployment complete, don't forget to visit /bsettings
GPL-3.0
Original Creator - bishalqx980
𝓐 𝓹𝓻𝓸𝓳𝓮𝓬𝓽 𝓸𝓯
▄▄▄▄ ██▓ ██████ ██░ ██ ▄▄▄ ██▓
▓█████▄ ▓██▒▒██ ▒ ▓██░ ██▒▒████▄ ▓██▒
▒██▒ ▄██▒██▒░ ▓██▄ ▒██▀▀██░▒██ ▀█▄ ▒██░
▒██░█▀ ░██░ ▒ ██▒░▓█ ░██ ░██▄▄▄▄██ ▒██░
░▓█ ▀█▓░██░▒██████▒▒░▓█▒░██▓ ▓█ ▓██▒░██████▒
░▒▓███▀▒░▓ ▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒ ▒▒ ▓▒█░░ ▒░▓ ░
▒░▒ ░ ▒ ░░ ░▒ ░ ░ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░ ▒ ░
░ ░ ▒ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░
based on python-telegram-bot lib