Giter Site home page Giter Site logo

vb64 / telegram.email.notify Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 6.0 3.52 MB

text transformation service for Telegram EmailGateBot

License: MIT License

Makefile 2.06% Python 74.79% HTML 23.15%
flask emailgatebot telegram-bot googlecloudplatform appengine-python

telegram.email.notify's Introduction

Message text transformation for @EmailGateBot in Telegram Messenger

GitHub Workflow Status GitHub Workflow Status Codacy Badge Codacy Badge

In Russian

@EmailGateBot allows messaging to channels and groups of Telegram by emailing to the special mailbox.

You can automatically transform text of messages for emails from the whitelist of the chat. To do this, you need to deploy a web server on the Internet that accepts POST requests at a permanent address. A request to this address should not require authorization.

@EmailGateBot sends POST requests with data in the request body (the data is transmitted exactly in the request body, and not as the value of some form field). The data is UTF-8 encoded text and has the following format.

The first line contains the subject field of the email received by the bot and a line feed. The following lines contain the body of the email, including HTML markup.

Your program should return a response with code 200 and the header 'Content-Type=text/plain'. The text for publication in the Telegram chat should be contained in the response body.

If your program returns a response code other than 200, then @EmailGateBot will ignore your reply and apply its standard rules for converting the contents of the received email for publication on Telegram.

This project is an implementation of such a conversion for mailing lists of some popular resources. The project is written in python/flask and is intended to be deployed to the Google Cloud Platform AppEngine Standard Environment.

The live version is located here.

telegram.email.notify's People

Contributors

codacy-badger avatar vb64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

telegram.email.notify's Issues

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.