Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unmaintainedprojects/-name-2
https://github.com/unmaintainedprojects/-name-2
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/unmaintainedprojects/-name-2
- Owner: UnmaintainedProjects
- License: lgpl-3.0
- Created: 2022-01-17T11:41:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T17:41:07.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T00:45:04.797Z (7 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 10
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Music Bot in Go
An example bot using [gotgcalls].
## Setup
1. Install [the server].
2. Create a `.env` file with the following variables:- `APP_ID` and `APP_HASH`, which are your Telegram app credentials obtained from
[my.telegram.org/apps].
- `BOT_TOKEN`, which is your bot's token obtained from [@BotFather]## Running
```bash
go run .
```> Note that you will need to login to your Telegram account once.
## Commands
| Command | Description |
| ------- | ----------------------------------------- |
| stream | Streams or queues the replied audio file. |
| skip | Skips the current stream. |
| stop | Stops streaming and clears the queue. |
| mute | Mutes the stream audio. |
| unmute | Unmutes the stream audio. |
| pause | Pauses the stream. |
| resume | Resumes the stream. |> Note that the commands currently work in supergroups only.
[gotgcalls]: https://github.com/gotgcalls/tgcalls
[the server]: https://github.com/gotgcalls/server
[my.telegram.org/apps]: https://my.telegram.org/apps
[@BotFather]: https://t.me/BotFather