Skip to content
Discussion options

You must be logged in to vote

Hi, no issues, you always need to start somewhere and you don't need to know everything from start, so this is fine

First I would like to suggest you reading How do bots work, Telegram Bot FAQ for basic questions, then about BotFather. Once you understand basic concepts and building blocks for creating bots, try to create bot using BotFather, getting it's token and running very simple bots, like from README example. Also there is official tutorial for Java, but it still can be useful.

main.go

package main

import (
	"context"
	"fmt"
	"os"

	"github.com/mymmrac/telego"
)

func main() {
	// Get Bot token from environment variables
	botToken := os.Getenv("TOKEN")

	// Create bot and enable d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MrSDTs
Comment options

Answer selected by mymmrac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants