https://github.com/kazedevid/tgbot-go
Simple telegram bot using Go language.
https://github.com/kazedevid/tgbot-go
Last synced: about 1 year ago
JSON representation
Simple telegram bot using Go language.
- Host: GitHub
- URL: https://github.com/kazedevid/tgbot-go
- Owner: KazeDevID
- License: apache-2.0
- Created: 2025-04-25T04:01:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-25T08:32:24.000Z (about 1 year ago)
- Last Synced: 2025-05-18T09:12:02.068Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bot Telegram Go
Simple telegram bot using Go language
## Installation
### 1. Condition
Make sure you have Go installed (version 1.15 or later).
### 2. Clone Repository
Clone this repository to your local directory:
```bash
git clone https://github.com/KazeDevID/tgbot-go.git
cd tgbot-go
```
### 3. Install Dependencies
Install required dependencies:
```bash
go mod tidy
```
### 4. Configuration
Create a `config.json` file in your project root directory with the following contents:
```json
{
"botToken": "YOUR_BOT_TOKEN",
"apiKey": "YOUR_API_KEY"
}
```
- botToken: you can get your bot token at bot father.
- apikey: You can register and get your apikey at [`here`](https://kaze-apis.my.id/)
## Running the Bot
### 1. In Termux
If you are using Termux, you can run the bot with the following command:
```bash
go run main.go
```
### 2. On VPS
If you are using a VPS, you can do the same steps:
```bash
go run main.go
```
## Note
Make sure your bot has internet access to function properly.
```
### Explanation
- **Installation**: Explains how to install and configure the bot.
- **Running the Bot**: Provides instructions for running the bot on Termux and VPS.