go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.58k stars 863 forks source link

[BUG] `Bad Request: chat not found` for groups with 10 digits ID #654

Open Jagerente opened 1 year ago

Jagerente commented 1 year ago

Information

I am using func (*tgbotapi.BotAPI).Send(c tgbotapi.Chattable) (tgbotapi.Message, error) to send messages to multiple groups. When i'm attempting to send a message to some groups i'm receiving Bad Request: chat not found error.

Some researching

romanzy313 commented 6 months ago

Im having the same issue. tried with - and without. Is this a bug?

    msg := tgbotapi.NewMessage(int64(...), "test")

    res, err := bot.Send(msg)
emil14 commented 2 weeks ago

Any updates?