https://github.com/akkupy/sara-bot
A Telegram Bot
https://github.com/akkupy/sara-bot
bot telegram telegram-bot telegram-bot-api telegram-bot-apitelegram
Last synced: 11 months ago
JSON representation
A Telegram Bot
- Host: GitHub
- URL: https://github.com/akkupy/sara-bot
- Owner: akkupy
- License: gpl-3.0
- Created: 2020-12-23T14:54:32.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T17:25:48.000Z (about 3 years ago)
- Last Synced: 2025-03-15T01:46:28.999Z (over 1 year ago)
- Topics: bot, telegram, telegram-bot, telegram-bot-api, telegram-bot-apitelegram
- Language: Python
- Homepage:
- Size: 852 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SARA-BOT 🇮🇳
A Powerful, Smart And Simple Telegram Bot By Akku
# KeyFeatures
* Wiki Searching
* YT Mp3 Converter
* Multiple Client Support.
* Smart & Powerful Tools.
* Much Cleaner And Stable.
* Daily Maintained.
# Deploying To Heroku
[](https://heroku.com/deploy?template=https://github.com/akkupy/Sara-Bot)
# Steps To Follow On Heroku
* Click Deploy To Heroku
* Fill up the App name
* Create a Bot with Botfather on telegram(https://t.me/BotFather)
* Retreive The Api ID and Bot User Name From BotFather
* Config vars(refer [mandatory configs](https://github.com/akkupy/Sara-Bot#mandatory-configs)) Based On this Data
* Deploy
* Run https://app-name.herokuapp.com/set_webhook on a browser tab (change app-name to the name of heroku app)
* If it shows webhook setup ok ! You are good to Go... Else Try Refreshing after 10 sec+
* Check if your telegram bot works!
# Self-hosting (For Devs)
## Simply clone the repository and run the main file:
```sh
# Install Git First // (Else You Can Download And Upload to Your Local Server)
$ git clone https://github.com/akkupy/Sara-Bot
# Open Git Cloned File
$ cd Sara-Bot
# Config Virtual Env (Skip is already Done.)
$ virtualenv -p /usr/bin/python3 venv
$ . ./venv/bin/activate
# Install All Requirements.
$ pip(3) install -r requirements.txt
# Replace credentials.py with variables as given below in Modules folder
# Start Bot
$ python(3) -m app
```
# Mandatory Configs
```
[+] If You Running Sara On A Deploy Services With Config Env Support Like Heroku, Zeet.co, Please Set "ENV" To True , Else For Self Host Services Like Digital Ocean Just Make A Credentials File And Put Vars Given Below.
[-] bt_token: Telegram Bot Token
[-] bot_user_name : Telegram Bot UserName
[-] URL : For WebHook(https://.herokuapp.com/)
[+] The Sara will not work without setting the mandatory vars.
```
## An Example Of "credentials.py" File
```
bot_token = "sd78g6add897s8d7f875adad768d"
bot_user_name = "akkubot"
URL = "https://akkubot45646.herokuapp.com"
```
# Contact Me
[](https://t.me/akkupy)
# License
[](http://www.gnu.org/licenses/gpl-3.0.en.html)
SaraBot is Free Software: You can use, study share and improve it at your
will. Specifically you can redistribute and/or modify it under the terms of the
[GNU General Public License](https://www.gnu.org/licenses/gpl.html) as
published by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
