https://github.com/martinsmessias/botenio-telegram-bot
Botenio is a Telegram bot that offers a variety of features. It doesn't have a specific target audience, I just added features that I personally would find useful.
https://github.com/martinsmessias/botenio-telegram-bot
bot python telegram
Last synced: about 2 months ago
JSON representation
Botenio is a Telegram bot that offers a variety of features. It doesn't have a specific target audience, I just added features that I personally would find useful.
- Host: GitHub
- URL: https://github.com/martinsmessias/botenio-telegram-bot
- Owner: MartinsMessias
- Created: 2021-04-05T03:07:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T13:17:35.000Z (over 3 years ago)
- Last Synced: 2025-02-26T13:46:48.333Z (over 1 year ago)
- Topics: bot, python, telegram
- Language: Python
- Homepage: https://t.me/botenio_theBot
- Size: 317 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Botenio - Telegram Bot
This is a Telegram bot written in Python. It can be run in a virtual environment or on Docker.
## Requirements
- Python 3.6 or higher
- virtualenv (optional)
## Setup
1. Clone this repository
2. Create a virtual environment and activate it (optional but recommended)
3. Install the required dependencies using `pip install -r requirements.txt`
4. Add the following environment variables:
- FROM_EMAIL
- FROM_PWD
- TELEGRAM_TOKEN
- TWITTER_TOKEN
- SHODAN_API_KEY
- ADMIN_CHAT_ID
5. Run the bot using `python bot.py`
## Running on Docker
1. Build the Docker image using `docker build -t telegram-bot .`
2. Run the Docker container using `docker run -d --name bot -e FROM_EMAIL= -e FROM_PWD= -e TELEGRAM_TOKEN= -e TWITTER_TOKEN= -e SHODAN_API_KEY= -e ADMIN_CHAT_ID= telegram-bot`
3. The bot should now be running in the background. You can view its logs using `docker logs bot`
## Usage
Once the bot is running, you can interact with it using Telegram.
Note that the `ADMIN_CHAT_ID` environment variable should be set to the ID of the chat where the bot is being used. This is used to restrict certain commands to only be available in that chat.