Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic error occurs when using Bot.ChatByID #734

Open
GHOSTsama2503 opened this issue Aug 23, 2024 · 0 comments
Open

Panic error occurs when using Bot.ChatByID #734

GHOSTsama2503 opened this issue Aug 23, 2024 · 0 comments

Comments

@GHOSTsama2503
Copy link

The client triggers a panic error when using Bot.ChatByID with a chat_id where the bot is not a member.

Example Code

bot, _ := telebot.NewBot(telebot.Settings{
	Token:  os.Getenv("TOKEN"),
	Poller: &telebot.LongPoller{Timeout: time.Second * 10},
})

bot.ChatByID(chatId)

go version go1.22.3 linux/amd64
using telebot v3.3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant