Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/4myr/tabchi

Advertimenter Telegram Cli Bot
https://github.com/4myr/tabchi

Last synced: about 2 months ago
JSON representation

Advertimenter Telegram Cli Bot

Awesome Lists containing this project

README

        

# Tabchi -AMYR -Python
My Telegram: [@SudoYUM](https://t.me/SudoYUM)

An adverstiment telegram bot that developed by [Telethon](https://github.com/LonamiWebs/Telethon) python library.
### Features:
- Gathering supergroups invite links
- Joining supergroups
- Send random advertisement to groups
- Send random banner to private chats\
- Enable/disable Joining groups, Sending advertisement, Sending Banners
- Prevent joining channels
- Set maximum groups
- Set delay for joining groups & sending advertisement to groups
- Send advertisement only once per user
- Detecting & Block advertisement and not usable supergroups
- Sharing configs & data between multiple accounts

---
### Commands:
- !ping (بررسی آنلاین بودن ربات)
- !stats (دریافت آمار و وضعیت کامل ربات)
- !set [cron|groups|join|bot] [value] (تنظیم فاصله بین دو تبلیغ | حداکثر گروه ها | فاصله بین دو جوین | ربات)
- !clear [adv|banner|users] (پاک کردن تمام متن های تبلیغ | متن های بنر در خصوصی | کش کاربران دریافت کننده تبلیغ)
- !adv (لیست تمام متن های تبلیغات در گروه ها)
- !adv [text] (ایجاد یک متن تبلیغ جدید)
- !adv [on|off] (روشن و خاموش کردن تبلیغ در گروه ها)
- !banner (لیست تمام متن های تبلیغات در خصوصی)
- !banner [text] (ایجاد یک متن تبلیغ خصوصی جدید)
- !banner [on|off] (روشن و خاموش کردن تبلیغ در خصوصی)
- !join [on|off] (روشن و خاموش کردن جوین لینک ها)
- And other commands...

### Installation (Ubuntu 18.04)

First, clone repository in your specific path:
```sh
$ cd ~
$ git clone https://github.com/4myr/tabchi
$ cd tabchi
```

Then, install redis, python3 and telethon library by pip3
```sh
$ sudo apt update
$ sudo apt install -y redis redis-tools python3 python3-pip screen
$ pip3 install --upgrade pip
$ pip3 install telethon psutil redis
```

Now, edit `config.py` file by:
```sh
$ nano config.py
```
Enter your Telegram Chat ID, API KEY & API HASH between quotes

Then, launch bot using:
```sh
$ screen ./launch.sh
```
or
```sh
python3 main.py [instance_name]
```
For first time you must login your account and for next times you don't need login.
You can use `CTRL + A + D` for deattach screen.