Users
billa_telegram_bot> db.metadata.aggregate([ { $group: { _id: "$user_name", count: { $sum: 1 }, first_timestamp: { $first: "$timestamp" }, last_timestamp: { $last: "$timestamp" }} }] )
[
{
_id: 'sharda shinde',
count: 161,
first_timestamp: ISODate('2025-01-24T05:22:56.219Z'),
last_timestamp: ISODate('2025-01-28T04:27:32.570Z')
},