tderflinger / serverless-message-telegram

Send a contact message to your Telegram account.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serverless-message-telegram

Send a contact message to your Telegram account.

Install

Install according to the Serverless installation instructions:

Then run after cloning this repository:

npm install

Set the environmental variables in serverless.yml according to your values.

For example:

export TELEGRAM_API_KEY=xxxx
export TELEGRAM_CHAT_ID=xxxx

You can get your Telegram API key and chat ID by following this tutorial:

Offline Testing

sls offline

Deploy

sls deploy

Note, after deploying there are costs associated with invoking the function depending on cloud provider.

Remove

sls remove

Notice

If internal server error occurs, run before deploy:

chmod -R +r node_modules/

License

MIT

About

Send a contact message to your Telegram account.

License:MIT License


Languages

Language:JavaScript 100.0%