The bot would be programmed to monitor all Telegram channels and groups for new messages. Once a new message is posted, the bot would immediately detect it and extract the relevant information such as the message content, sender's id, date, and time. Then the bot would post that information to the database.
git clone https://github.com/sabber-slt/telegram-real-time
cd telegram-real-time
yarn