Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/defcon-007/utilobot-new

A multi-utility chatbot for telegram.
https://github.com/defcon-007/utilobot-new

aws-lambda chatbot python3 telegram-bot

Last synced: 2 months ago
JSON representation

A multi-utility chatbot for telegram.

Awesome Lists containing this project

README

        

Welcome to UtiloBot 👋



Version

License: MIT


Twitter: defcon_007

> A multi-utility bot for Telegram. Make your life easier and get music links to every platform, shorten URLs, etc without ever leaving telegram.

### 🏠 [Homepage](https://utilobot.defcon007.com)

### ✨ [Demo](https://t.me/UtiloBot)

## Build

This bot is hosted on Google cloud functions for better scalability and less maintainance.

The project is based on Python 3.6, make sure you have the correct python version by using `python --version` or `python3 --version`.

- ```pip3 install virtualenv```
- Create a new virtual environment for the project.
```virtualenv -p python3 ./env```
- Activate the environment created in the last step.
```source ./env/bin/activate```
- Install the dependancies.
```pip install -r requirements.txt```
- Now, you can work and add your logic in the `lambda_function.py`. This is the main file which runs when we receive a telegram API webhook. After you are done, just create a zip and upload it to AWS Lambda.
- Use the following command to deploy to google cloud function.
```gcloud functions deploy --runtime python38 --trigger-http --allow-unauthenticated --region asia-south1 --entry-point=lambda_handler```

### Connecting Telegram

- Use Telegram's BotFather to create a new bot and add the corresponding bot token as environment variable named `BOT_TOKEN`.
- After the cloud function deployment is done, we need to add a new webhook url to get updates. Copy the cloud function public URL and use the guide [here](https://xabaras.medium.com/setting-your-telegram-bot-webhook-the-easy-way-c7577b2d6f72) to create a new webhook.

## Author

👤 **Ayush Goyal**

* Website: https://www.defcon007.com/
* Twitter: [@defcon_007](https://twitter.com/defcon_007)
* Github: [@DefCon-007](https://github.com/DefCon-007)
* LinkedIn: [@defcon-007](https://linkedin.com/in/defcon-007)

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2020 [Ayush Goyal](https://github.com/DefCon-007).

This project is [MIT](https://github.com/DefCon-007/UtiloBot-New/blob/master/LICENSE) licensed.

***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_