Telegram · JSON-LD Context
Telegram Context
JSON-LD context defining the semantic vocabulary for Telegram from Telegram.
12 Classes
31 Properties
3 Namespaces
Namespaces
schema:
https://schema.org/
telegram:
https://core.telegram.org/schema/
xsd:
http://www.w3.org/2001/XMLSchema#
Classes
Message
Update
User
Chat
Bot
ChatMember
BotCommand
InlineQuery
CallbackQuery
Poll
Invoice
StickerSet
Properties
| Property | Type | Container |
|---|---|---|
| message_id | integer | |
| update_id | integer | |
| chat_id | integer | |
| user_id | integer | |
| from | reference | |
| chat | reference | |
| date | integer | |
| text | string | |
| caption | string | |
| first_name | string | |
| last_name | string | |
| username | string | |
| is_bot | boolean | |
| language_code | string | |
| is_premium | boolean | |
| title | string | |
| description | string | |
| invite_link | string | |
| is_anonymous | boolean | |
| command | string | |
| status | string | |
| member_count | integer | |
| currency | string | |
| total_amount | integer | |
| file_id | string | |
| file_path | string | |
| file_size | integer | |
| type | string | |
| question | string | |
| options | reference | |
| total_voter_count | integer |
JSON-LD Document
{
"@context": {
"@version": 1.1,
"schema": "https://schema.org/",
"telegram": "https://core.telegram.org/schema/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"Message": "telegram:Message",
"Update": "telegram:Update",
"User": "telegram:User",
"Chat": "telegram:Chat",
"Bot": "telegram:Bot",
"ChatMember": "telegram:ChatMember",
"BotCommand": "telegram:BotCommand",
"InlineQuery": "telegram:InlineQuery",
"CallbackQuery": "telegram:CallbackQuery",
"Poll": "telegram:Poll",
"Invoice": "telegram:Invoice",
"StickerSet": "telegram:StickerSet",
"message_id": {
"@id": "telegram:messageId",
"@type": "xsd:integer"
},
"update_id": {
"@id": "telegram:updateId",
"@type": "xsd:integer"
},
"chat_id": {
"@id": "telegram:chatId",
"@type": "xsd:integer"
},
"user_id": {
"@id": "telegram:userId",
"@type": "xsd:integer"
},
"from": {
"@id": "telegram:from",
"@type": "@id"
},
"chat": {
"@id": "telegram:chat",
"@type": "@id"
},
"date": {
"@id": "telegram:date",
"@type": "xsd:integer"
},
"text": {
"@id": "telegram:text",
"@type": "xsd:string"
},
"caption": {
"@id": "telegram:caption",
"@type": "xsd:string"
},
"first_name": {
"@id": "schema:givenName",
"@type": "xsd:string"
},
"last_name": {
"@id": "schema:familyName",
"@type": "xsd:string"
},
"username": {
"@id": "schema:identifier",
"@type": "xsd:string"
},
"is_bot": {
"@id": "telegram:isBot",
"@type": "xsd:boolean"
},
"language_code": {
"@id": "schema:inLanguage",
"@type": "xsd:string"
},
"is_premium": {
"@id": "telegram:isPremium",
"@type": "xsd:boolean"
},
"title": {
"@id": "schema:name",
"@type": "xsd:string"
},
"description": {
"@id": "schema:description",
"@type": "xsd:string"
},
"invite_link": {
"@id": "telegram:inviteLink",
"@type": "xsd:string"
},
"is_anonymous": {
"@id": "telegram:isAnonymous",
"@type": "xsd:boolean"
},
"command": {
"@id": "telegram:command",
"@type": "xsd:string"
},
"status": {
"@id": "telegram:memberStatus",
"@type": "xsd:string"
},
"member_count": {
"@id": "schema:numberOfMembers",
"@type": "xsd:integer"
},
"currency": {
"@id": "schema:currency",
"@type": "xsd:string"
},
"total_amount": {
"@id": "schema:totalPrice",
"@type": "xsd:integer"
},
"file_id": {
"@id": "telegram:fileId",
"@type": "xsd:string"
},
"file_path": {
"@id": "telegram:filePath",
"@type": "xsd:string"
},
"file_size": {
"@id": "telegram:fileSize",
"@type": "xsd:integer"
},
"type": {
"@id": "telegram:chatType",
"@type": "xsd:string"
},
"question": {
"@id": "schema:question",
"@type": "xsd:string"
},
"options": {
"@id": "telegram:pollOptions",
"@type": "@id"
},
"total_voter_count": {
"@id": "telegram:totalVoterCount",
"@type": "xsd:integer"
}
}
}