{
"$jsonSchema": {
"required": [
"user",
"link",
"label",
"tg_name",
"tg_phone",
"tg_locale",
"tg_username"
],
"properties": {
"user": {
"bsonType": ["int", "long"],
"description": "Telegram ID of user"
},
"link": {
"bsonType": ["string", "null"],
"description": "Invite link to destination group"
"label": {
"bsonType": "string",
"description": "Label given by admins"
"tg_name": {
"description": "Telegram first name"
"tg_phone": {
"description": "Telegram phone number"
"tg_locale": {
"description": "Telegram locale"
"tg_username": {
"description": "Telegram username"
}