This Telegram bot is built using the python-telegram-bot
library version 21.9
and performs various tasks within Telegram.
This bot can be found as Ciri on Telegram.
***If you liked this project then please give it a โญ | Thank You!*** |
๐ Note (14/12/2024): Certain features have been temporarily removed due to limitations. They may be reintroduced in future updates. Additionally, not all features are listed here. We encourage you to start the bot and explore its full functionality. I appreciate your understanding.
Removed due to limitations
Removed due to limitations
Removed due to limitations
Steps
Download & Rename sample_config.env
to config.env
then fillup config.env
file valueโs
โ ๏ธ Note: Donโt share or upload the config.env
any public place or repository
config.env
Values
BOT_TOKEN
Get from https://t.me/BotFather E.g. 123456:abcdefGHIJK...
OWNER_ID
Get from bot by /id command E.g. 2134776547
MONGODB_URI
Get from https://www.mongodb.com/ (Check Below for instruction)DB_NAME
anything E.g. MissCiri_db
Note (MongoDB): On the left side list click on
Network Access
section click onADD IP ADDRESS
and set ip to0.0.0.0/0
(Its important to access database without network restriction)
Local Hosting ๐ป
python 3.11
(also tested on 3.13
)tgbot
directory on cmd/shellpip install -r requirements.txt
python -m bot
Render Deploy โก
Web Service
Public Git Repository
: https://github.com/bishalqx980/tgbot
> Language: Docker
> Branch: main
> Instance Type: Free [or paid]
Secret Files
> Filename: 'config.env'
> File Contents: Paste all content from 'sample_config.env' (make sure you filled up everything)
Note (Render Hosting): If you face anyproblem accessing
Advanced option
then just click onCreate Web Service
then fromEnvironment
>Secret Files
and add theconfig.env
values. Then restart/redeploy the web service.
Important (Render Hosting): After deployment complete go to Render Dashboard and open your service then you can see service url on top left corner https://example.onrender.com copy that and go to bot
/bsettings
server url and edit with your service url. (So that bot wonโt go to sleep)
After deployment complete, donโt forget to visit /bsettings
๐ ๐น๐ป๐ธ๐ณ๐ฎ๐ฌ๐ฝ ๐ธ๐ฏ
โโโโ โโโ โโโโโโ โโโ โโ โโโ โโโ
โโโโโโโ โโโโโโโ โ โโโโ โโโโโโโโโ โโโโ
โโโโ โโโโโโโโ โโโโ โโโโโโโโโโโ โโโ โโโโ
โโโโโโ โโโโ โ โโโโโโ โโโ โโโโโโโโโ โโโโ
โโโ โโโโโโโโโโโโโโโโโโโโโโโโ โโ โโโโโโโโโโโโ
โโโโโโโโโโ โ โโโ โ โ โ โโโโโ โโ โโโโโ โโโ โ
โโโ โ โ โโ โโ โ โ โ โโโ โ โ โโ โโ โ โ โ
โ โ โ โโ โ โ โ โโ โ โ โ โ โ
โ โ โ โ โ โ โ โ โ โ
โ