Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Negative chat id in log file of telegram bot

I have a telegram bot and save all user activity in a log file. When check log file, find user with negative chat id -107606558. Is this usual?

like image 793
amin roshani Avatar asked Aug 28 '16 10:08

amin roshani


People also ask

Is Telegram chat ID unique?

In the telegram messenger every user, chat, and group is having a unique ID.

Can Telegram bot owner see messages?

The bot can only extract this info from a Message (i.e. it cannot query the group member's names). If privacy mode is disabled, the bot can read all messages sent in a group. If it is enabled, a bot is only receives messages aimed directly at the bot (e.g. using a command or a reply to a message from the bot).


1 Answers

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

like image 66
TFS Avatar answered Sep 16 '22 19:09

TFS