Giter Club home page Giter Club logo

telegramstrangerblocker's Introduction

TelegramStrangerBlocker (Work in Progress)

Automatic block stranger message request unless approved by owner. The script will automatically move message from people not in the "safeusers" to archive and auto reply a pre-defined message.

This script make use of Telethon library and is heavily motivated by the auto reply feature written by https://medium.com/@jiayu./automatic-replies-for-telegram-85075f28321

Installation steps:

Hosting on own machine

  1. Download and install Python3 from https://www.python.org/downloads/.
  2. Install Telethon by typing "python3 -m pip install telethon" on command prompt or terminal (Windows/Linux).
  3. Visit https://my.telegram.org/auth and login.
  4. Go to API development tool.
  5. Create an new app by giving it an app title and a short name.
  6. You will be directed to another page with "App api_id" and "App api_hash".
  7. Replace the "api_id", "api_hash", "phone", "session_file", "number_of_pinned_chat" in the script with your own values.
  8. Run the script.

telegramstrangerblocker's People

Contributors

yeuyo avatar

Watchers

 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.