Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/veryshyjelly/telegram-ki-maya
https://github.com/veryshyjelly/telegram-ki-maya
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/veryshyjelly/telegram-ki-maya
- Owner: veryshyjelly
- Created: 2024-02-04T13:19:34.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-08T09:39:55.000Z (10 months ago)
- Last Synced: 2024-03-08T10:46:49.729Z (10 months ago)
- Language: Go
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# telegram-ki-maya
## Usage
### Get Bot Token From BotFather
- Create a new bot from [BotFather](https://t.me/BotFather)
- Get the bot token from BotFather
- Set the bot token as environment variable
```bash
TOKEN=
```### Using Docker
- Build the docker image
```bash
docker build -t telegram-ki-maya .
```
- Run the docker container
```bash
docker run -d -p 8060:8060 --name telegram-ki-maya telegram-ki-maya
```### Using Golang
- Install Golang
- Run the application
```bash
go run main.go
```### Connecting to Websocket
- Get the chat id from the bot
- Add the bot to a group
- Use the command `/chat_id` in the group
- Save the chat id for later use
- Using Postman
- Create a new request
- Set the request type to `WebSocket`
- Set the request URL to `ws://localhost:8060/ws?sub=$chat_id`
- Click on `Connect` button
- Send the first message as API token
- You are now connected to the bot