Negative chat id in log file of telegram bot
Asked Answered
M

1

20

I have a Telegram bot and I save all user activity in a log file. When I checked the log file, I found a user with a negative chat ID -107606558. Is this normal?

Morganatic answered 28/8, 2016 at 10:45 Comment(0)
C
41

If the chat is a group, the chat id is negative. If it is a single person, then positive.

Charla answered 15/10, 2016 at 5:43 Comment(3)
any references?Krypton
I second the call for references - I doubt that my bot has been used in only 10 groups but by 670+ unique users. However, I couldn't create a counterexample group.Currey
seems its correct: github.com/TelegramBots/Telegram.Bot/issues/661Goldshell

© 2022 - 2025 — McMap. All rights reserved.