Coder Social home page Coder Social logo

telegram_bot_antispam's Introduction

Bot Telegram antispam


Author: Makushin Dmitriy
Author-email: [email protected]
License: MIT

Instrution (En):
Bot written in Python 3.5
Use librery pyTelegramBotAPI https://github.com/eternnoir/pyTelegramBotAPI


# install librery:
$ pip3 install pytelegrambotapi


# run the bot from the directory with the command:
$ python3 bot.py


# When adding a bot to a group, you need to make it an "administrator" and allow it to send and edit messages.

Capability my bot:
Delete all message that have:
- url;
- email;
- code lang;
- system message add or del user in group;
- command bot;
- add video or audio file;
- stiker;
- venue message;
- picture or photo file.
Bot actions apply to all but the list of users who are allowed.     
The list of users who are allowed to do everything is specified in the config.py file in the admin_user array.


# Инструкция (Ru):
Бот написан на Python 3.5
использовал библиотеку: pyTelegramBotAPI https://github.com/eternnoir/pyTelegramBotAPI


# устанавливаем библиотеку для phyton:
$ pip3 install pytelegrambotapi


# запуск бота из папки командой:
$ python3 bot.py


# при добавлении бота в группу необходимо сделать его "администратором" и разрешить ему отпровлять и редактировать сообщения.

Возможности бота:
Удаляет все сообщения в которых есть:
- ссылки в любом виде;
- емайл;
- код (но туту есть нюансы не все режит);
- контакт другого пользователя;
- системное сообщение об вступлении или удалении пользователя в группу;
- команды для бота;
- прикрепленое видео или аудио файл;
- параметры локации;
- стикер (смайлы пропускает);
- голосовое сообщение;
- картинка в любом виде (прикреплена как файл или фото без разницы).
Действия бота распространяются на всех кроме списка пользователей которым это разрешено.
Список пользоватлей, которым разрешается все делать указывается в файле config.py в массиве admin_user.


Если хотите его разместить на свой сервер то ознакомтесь с этой статьей: https://groosha.gitbooks.io/telegram-bot-lessons/content/ini_and_pyz.html

Relice 1.0.1

  • add function delete message with bottons and message with json

Relice 1.0.2

  • up all function
  • add function delete message with all bottons type

Relice 1.0.3

  • add new function for message.entities

telegram_bot_antispam's People

Contributors

xdmv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.