https://github.com/m1chtv/mich-tgbot
Telegram Bot for Proxy Posting
https://github.com/m1chtv/mich-tgbot
proxy python python3 telegram telegram-bot telegram-proxy telegrambot tgbot
Last synced: about 1 month ago
JSON representation
Telegram Bot for Proxy Posting
- Host: GitHub
- URL: https://github.com/m1chtv/mich-tgbot
- Owner: m1chtv
- License: mit
- Created: 2024-09-04T11:54:33.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T12:03:08.000Z (almost 2 years ago)
- Last Synced: 2025-07-04T17:12:58.735Z (12 months ago)
- Topics: proxy, python, python3, telegram, telegram-bot, telegram-proxy, telegrambot, tgbot
- Language: Python
- Homepage: https://m1ch.ir/
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mich-tgbot
## Telegram Bot for Proxy Posting
This Python script automates the process of posting a proxy with a custom caption and inline buttons to a Telegram channel. It uses the `python-telegram-bot` library along with `asyncio` for asynchronous operations.
## Features:
- **Dynamic Captions:** The caption includes the current date and time.
- **Inline Keyboard:** Custom inline buttons can be configured to provide quick actions or links.
- **Photo Support:** Optionally attach a photo to the message, if available.
- **Error Handling:** Provides basic error handling to ensure the bot continues running smoothly.
## Setup:
1. **Install Dependencies:**
```bash
pip install python-telegram-bot asyncio
```
2. **Configure Your Bot:**
- Replace `BOT_TOKEN` with your actual Telegram bot token.
- Set the `CHANNEL_ID` to the Telegram channel where the message should be sent.
- Update the `PHOTO_PATH` with the path to the image you want to send.
## Usage:
Run the script using:
```bash
python mich.py
```
**The bot will send a message to the specified Telegram channel, including an optional photo, dynamic caption, and inline buttons.**