Amin Roshani
Amin Roshani

Reputation: 399

Negative chat id in log file of telegram bot

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?

Upvotes: 20

Views: 9733

Answers (1)

TFS
TFS

Reputation: 1024

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

Upvotes: 41

Related Questions