GoMusicBot

An example bot using GoTGCalls.


Configuring

Copy example.env to .env and add your credentials.

  • STRING_SESSION: A GramJS/Telethon string session. You can generate one here.
  • API_ID: Telegram app ID.
  • API_HASH: Telegram app hash.
  • BOT_TOKEN: Telegram bot token.

Running

  1. Install GoTGCalls.

  2. Start:

go run .

Commands

Command Description
stream Stream the replied audio file
pause Pause streaming
resume Resume streaming
skip Skip the current playback
stop Clear the queue and leave the call

GitHub

https://github.com/gotgcalls/GoMusicBot