Giter Site home page Giter Site logo

peraltaespectre / getrestrictedmessages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xditya/getrestrictedmessages

0.0 0.0 0.0 16 KB

Copy messages from telegram chats with forward restrictions enabled.

Home Page: https://t.me/BotzHub/268

License: GNU Affero General Public License v3.0

Python 99.37% Procfile 0.63%

getrestrictedmessages's Introduction

GetRestrictedMessages

Telegram bot to copy messages from chats (both private and public) with forward restrictions enabled.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

  • API_ID - Telegram API ID from my.telegram.org
  • API_HASH - Telegram API HASH from my.telegram.org
  • SESSION - Telethon session string. Get it by running python sessiongen.py locally.
  • AUTHS - List of telegram user IDs who can use the bot, split by space.

A sample .env file would look like this:

API_ID=123
API_HASH=abcdefd
SESSION=1Babcdefg
AUTHS=719195224 12345678

Deployment

DigitalOcean Referral Badge

To deploy this bot, run:

git clone https://github.com/xditya/GetRestrictedMessages
cd GetRestrictedMessages
pip install -r requirements.txt
cp .env.sample .env
nano .env [ fill the values and exit with ctrl+s and then ctrl+x ]
python main.py

OR

You can use other platforms that offer free deployments.

Support

For support, use the GitHub discussions tab, or join the support chat on telegram by clicking here.

License

GNU AFFERO GENERAL PUBLIC LICENSE

Authors

getrestrictedmessages's People

Contributors

xditya 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.