Sign inSign up

vietvd/telegram

By vietvd

•Updated about 8 years ago

telegram api

Image
0

686

vietvd/telegram repository overview

⁠Telegram API

This project is for running a simple relay server for telegram, for the purpose of sending message.

⁠Usage

Provide ports, token, chat id as required.

docker run -p<EXTERNAL_PORT>:5000 \
            -e FLASK_PORT=<PORT>\
            -e TELEGRAM_TOKEN=<TOKEN>\
            -e TELEGRAM_CHAT_ID=<CHAT_ID>\
            vietvd/telegram

To send mesasge, perform a post JSON requests to the server. Example in python's requests

import requests
requests.post('http://localhost:5000', json={
    'message': 'hello, world'
})

Tag summary

Content type

Image

Digest

Size

37.2 MB

Last updated

about 8 years ago

docker pull vietvd/telegram