https://github.com/tderflinger/serverless-message-telegram
Send a contact message to your Telegram account.
https://github.com/tderflinger/serverless-message-telegram
Last synced: 3 months ago
JSON representation
Send a contact message to your Telegram account.
- Host: GitHub
- URL: https://github.com/tderflinger/serverless-message-telegram
- Owner: tderflinger
- License: mit
- Created: 2019-11-11T18:19:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T22:33:17.000Z (over 3 years ago)
- Last Synced: 2023-03-11T01:42:00.418Z (over 3 years ago)
- Language: JavaScript
- Size: 317 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# serverless-message-telegram
Send a contact message to your Telegram account.
## Install
Install according to the Serverless installation instructions:
- https://serverless.com/framework/docs/getting-started/
Then run after cloning this repository:
```bash
npm install
```
Set the environmental variables in _serverless.yml_ according to your values.
For example:
```bash
export TELEGRAM_API_KEY=xxxx
export TELEGRAM_CHAT_ID=xxxx
```
You can get your Telegram API key and chat ID by following this tutorial:
- https://djangostars.com/blog/how-to-create-and-deploy-a-telegram-bot/
## Offline Testing
```bash
sls offline
```
## Deploy
```bash
sls deploy
```
Note, after deploying there are costs associated with invoking the function depending on cloud provider.
## Remove
```bash
sls remove
```
## Notice
If internal server error occurs, run before deploy:
```bash
chmod -R +r node_modules/
```
## License
MIT