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

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

Open
Jagerente opened this issue May 25, 2023 · 1 comment
Open

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

Jagerente opened this issue May 25, 2023 · 1 comment

Comments

@Jagerente
Copy link

Jagerente commented May 25, 2023

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.

  • Bot added to all groups i'm working with.
  • I have verified group IDs multiple times.

Some researching

  • Issue is consistently observed across a total of 157 chats. Chat IDs ranges from -3******** (9 digits) to -1********* (10 digits).
  • Error occurs ONLY for chats within 10 digits IDs (with 1 exception of 19 tested).
@romanzy313
Copy link

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

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

	res, err := bot.Send(msg)

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

2 participants