Download OpenAPI specification:Download
Primary search endpoint for dashboard
Query
| query required | string non-empty |
| size | integer <int64> [ 1 .. 50 ] Default: 20 |
| page | integer <int64> >= 1 Default: 1 |
| group | string (PostSearchGroupBy) Enum: "actor" "content" "source" |
Array of objects or null (PostSearchFilter) unique | |
Array of objects non-empty unique | |
| highlight | boolean |
{- "query": "string",
- "size": 20,
- "page": 1,
- "group": "actor",
- "filters": [
- {
- "field": "actors",
- "value": "string",
- "platform": "string",
- "operation": "include"
}
], - "sort": [
- {
- "field": "updatedAt",
- "order": "asc"
}
], - "highlight": true
}{- "total": 0,
- "pages": 0,
- "took": 0,
- "results": [
- {
- "id": "string",
- "type": "string",
- "platform": "string",
- "highlights": [
- {
- "field": "string",
- "value": "string"
}
], - "document": {
- "id": "string",
- "tid": "string",
- "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "forwardedFrom": {
- "id": "string",
- "tid": "string",
- "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "signature": "string",
- "scheduled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "repliedTo": {
- "id": "string",
- "tid": "string",
- "topId": "string"
}, - "mediaType": "MESSAGE_MEDIA_TYPE_UNKNOWN",
- "contents": [
- {
- "content": "string",
- "markdown": "string",
- "sha256": "string",
- "entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "duplicates": 0,
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "contact": {
- "phoneNumber": "string",
- "firstName": "string",
- "lastName": "string",
- "userId": 0
}, - "venue": {
- "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "title": "string",
- "address": "string",
- "foursquareId": "string",
- "foursquareType": "string"
}, - "webPage": {
- "id": "string",
- "url": "string",
- "displayUrl": "string",
- "type": "string",
- "siteName": "string",
- "title": "string",
- "description": "string",
- "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "embedUrl": "string",
- "embedType": "string",
- "embedWidth": 0,
- "embedHeight": 0,
- "duration": 0,
- "author": "string"
}, - "poll": {
- "id": "string",
- "question": "string",
- "options": [
- {
- "text": "string",
- "voterCount": 0
}
], - "totalVotes": 0,
- "isClosed": true,
- "isAnonymous": true,
- "type": "MESSAGE_POLL_TYPE_UNKNOWN",
- "multipleAnswers": true,
- "explanation": "string",
- "explanation_entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "openPeriod": 0,
- "closedAt": "2019-08-24T14:15:22Z"
}, - "dice": {
- "emoji": "string",
- "value": 0
}, - "commands": [
- "string"
], - "pinned": true,
- "noForwards": true,
- "spoiler": true,
- "scheduled": true,
- "views": 0,
- "forwards": 0,
- "groupedId": "string",
- "reactions": [
- {
- "emoji": "string",
- "customEmojiId": "string",
- "count": 0,
- "order": 0
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": {
- "classification": "string",
- "tags": [
- "string"
]
}
}
]
}Aggregations on field values for narrowing down search results for a given query
Query
| query required | string non-empty |
{- "query": "string"
}{- "total": 0,
- "filters": [
- {
- "field": "string",
- "values": [
- {
- "value": "string",
- "display": "string",
- "platform": "string",
- "count": 0
}
]
}
]
}Get Telegram Channel by ID
| channelId required | string ID of Telegram Channel |
{- "id": "string",
- "type": "PEER_UNKNOWN",
- "name": "string",
- "username": "string",
- "topic": "string",
- "megagroup": true,
- "gigagroup": true,
- "verified": true,
- "scam": true,
- "fake": true,
- "support": true,
- "restricted": true,
- "signatures": true,
- "noForwards": true,
- "slowMode": true,
- "joinRequest": true,
- "joinToSend": true,
- "inviteLink": "string",
- "members": {
- "total": 0,
- "admins": 0,
- "kicked": 0,
- "banned": 0
}, - "messages": 0,
- "permissions": {
- "viewMessages": true,
- "sendMessages": true,
- "sendMedia": true,
- "sendStickers": true,
- "sendGifs": true,
- "sendGames": true,
- "sendInline": true,
- "embedLinks": true,
- "sendPolls": true,
- "changeInfo": true,
- "inviteUsers": true,
- "pinMessages": true,
- "manageTopics": true,
- "sendPhotos": true,
- "sendVideos": true,
- "sendRoundvideos": true,
- "sendAudios": true,
- "sendVoices": true,
- "sendDocs": true,
- "sendPlain": true,
- "viewStats": true,
- "delete": true,
- "viewPrehistory": true,
- "setLocation": true,
- "setUsername": true,
- "setStickers": true,
- "viewMembers": true
}, - "restrictions": [
- {
- "platform": "string",
- "reason": "string",
- "text": "string"
}
], - "bots": [
- {
- "id": "string",
- "username": "string",
- "name": "string",
- "description": "string",
- "commands": [
- {
- "command": "string",
- "description": "string"
}
], - "version": 0
}
], - "linkedChat": "string",
- "migratedFrom": "string",
- "migratedTo": "string",
- "pinnedMessage": "string",
- "ttl": 0,
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}, - "deletedAt": "2019-08-24T14:15:22Z",
- "metadata": {
- "version": 0,
- "hash": "string",
- "eventId": "string",
- "event": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "duplicates": 0
}
}Time series data for total messages sent in the channel
| channelId required | string ID of Telegram Channel |
| interval required | string (TimeSeriesIntervalEnum) Enum: "minute" "hour" "day" "week" "month" "quarter" "year" Calendar intervals |
| start required | string non-empty Start date |
| end required | string non-empty End date |
| timezone required | string non-empty IANA timezone |
{- "data": [
- {
- "x": "2019-08-24T14:15:22Z",
- "y": 0
}
]
}Time series data for total members in the channel
| channelId required | string ID of Telegram Channel |
| interval required | string (TimeSeriesIntervalEnum) Enum: "minute" "hour" "day" "week" "month" "quarter" "year" Calendar intervals |
| start required | string non-empty Start date |
| end required | string non-empty End date |
| timezone required | string non-empty IANA timezone |
{- "data": [
- {
- "x": "2019-08-24T14:15:22Z",
- "y": 0
}
]
}Time series data for average total messages per hour across a preset fixed interval
| channelId required | string ID of Telegram Channel |
| fixedInterval required | string (TimeSeriesFixedIntervalEnum) Enum: "week" "month" "quarter" "year" Fixed interval |
{- "data": [
- {
- "day": "string",
- "hours": [
- {
- "hour": 0,
- "value": 0
}
]
}
]
}Get Telegram Channel Members by ID
| channelId required | string ID of Telegram Channel |
| size | integer <int64> (PaginationSize) [ 1 .. 50 ] Default: 10 Pagination Size |
| page | integer <int64> (PaginationPage) >= 1 Default: 1 Pagination Current Page |
| sortBy | string (TelegramMembersSortEnum) Enum: "joined" "messages" "files" Sort by |
{- "total": 0,
- "pages": 0,
- "members": [
- {
- "id": "string",
- "channelId": "string",
- "userId": "string",
- "user": {
- "id": "string",
- "username": "string",
- "firstName": "string",
- "lastName": "string",
- "phone": "string",
- "about": "string",
- "bot": true,
- "verified": true,
- "fake": true,
- "scam": true,
- "support": true,
- "premium": true,
- "restrictions": [
- {
- "platform": "string",
- "reason": "string",
- "text": "string"
}
], - "language": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}, - "deletedAt": "2019-08-24T14:15:22Z",
- "metadata": {
- "version": 0,
- "hash": "string",
- "eventId": "string",
- "event": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "duplicates": 0
}
}, - "messages": 0,
- "files": 0,
- "role": "MEMBER_ROLE_UNKNOWN",
- "title": true,
- "invitedBy": "string",
- "promotedBy": 0,
- "restrictedBy": "string",
- "restrictedUntil": "2019-08-24T14:15:22Z",
- "leftAt": "2019-08-24T14:15:22Z",
- "joinedAt": "2019-08-24T14:15:22Z",
- "metadata": {
- "version": 0,
- "hash": "string",
- "eventId": "string",
- "event": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "duplicates": 0
}
}
]
}Get Telegram Channel Files by ID
| channelId required | string ID of Telegram Channel |
Query
| size | integer <int64> (PaginationSize) [ 1 .. 50 ] Default: 10 |
| page | integer <int64> (PaginationPage) >= 1 Default: 1 |
| sortBy | string (TelegramFilesSortBy) Enum: "name" "size" "files" |
| types | Array of strings (TelegramFilesTypes) Items Enum: "PHOTO" "VIDEO" "EMOJI" "VOICE" "DOCUMENT" "STICKER" "ANIMATION" "VIDEO_NOTE" "AUDIO" "WEB_PAGE" |
{- "size": 10,
- "page": 1,
- "sortBy": "name",
- "types": [
- "PHOTO"
]
}{- "total": 0,
- "pages": 0,
- "files": [
- {
- "id": "string",
- "tid": "string",
- "hash": "string",
- "type": "string",
- "mimeType": "string",
- "name": "string",
- "width": 0,
- "height": 0,
- "size": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "metadata": {
- "event": "string",
- "item": "string",
- "itemType": "string",
- "channelId": "string",
- "storage": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "storage": "string",
- "duplicates": 0,
- "message": {
- "id": "string",
- "tid": "string",
- "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "forwardedFrom": {
- "id": "string",
- "tid": "string",
- "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "signature": "string",
- "scheduled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "repliedTo": {
- "id": "string",
- "tid": "string",
- "topId": "string"
}, - "mediaType": "MESSAGE_MEDIA_TYPE_UNKNOWN",
- "contents": [
- {
- "content": "string",
- "markdown": "string",
- "sha256": "string",
- "entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "duplicates": 0,
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "contact": {
- "phoneNumber": "string",
- "firstName": "string",
- "lastName": "string",
- "userId": 0
}, - "venue": {
- "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "title": "string",
- "address": "string",
- "foursquareId": "string",
- "foursquareType": "string"
}, - "webPage": {
- "id": "string",
- "url": "string",
- "displayUrl": "string",
- "type": "string",
- "siteName": "string",
- "title": "string",
- "description": "string",
- "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "embedUrl": "string",
- "embedType": "string",
- "embedWidth": 0,
- "embedHeight": 0,
- "duration": 0,
- "author": "string"
}, - "poll": {
- "id": "string",
- "question": "string",
- "options": [
- {
- "text": "string",
- "voterCount": 0
}
], - "totalVotes": 0,
- "isClosed": true,
- "isAnonymous": true,
- "type": "MESSAGE_POLL_TYPE_UNKNOWN",
- "multipleAnswers": true,
- "explanation": "string",
- "explanation_entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "openPeriod": 0,
- "closedAt": "2019-08-24T14:15:22Z"
}, - "dice": {
- "emoji": "string",
- "value": 0
}, - "commands": [
- "string"
], - "pinned": true,
- "noForwards": true,
- "spoiler": true,
- "scheduled": true,
- "views": 0,
- "forwards": 0,
- "groupedId": "string",
- "reactions": [
- {
- "emoji": "string",
- "customEmojiId": "string",
- "count": 0,
- "order": 0
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
}
]
}Get Telegram User by ID
| userId required | string ID of Telegram User |
{- "id": "string",
- "type": "PEER_UNKNOWN",
- "name": "string",
- "username": "string",
- "topic": "string",
- "megagroup": true,
- "gigagroup": true,
- "verified": true,
- "scam": true,
- "fake": true,
- "support": true,
- "restricted": true,
- "signatures": true,
- "noForwards": true,
- "slowMode": true,
- "joinRequest": true,
- "joinToSend": true,
- "inviteLink": "string",
- "members": {
- "total": 0,
- "admins": 0,
- "kicked": 0,
- "banned": 0
}, - "messages": 0,
- "permissions": {
- "viewMessages": true,
- "sendMessages": true,
- "sendMedia": true,
- "sendStickers": true,
- "sendGifs": true,
- "sendGames": true,
- "sendInline": true,
- "embedLinks": true,
- "sendPolls": true,
- "changeInfo": true,
- "inviteUsers": true,
- "pinMessages": true,
- "manageTopics": true,
- "sendPhotos": true,
- "sendVideos": true,
- "sendRoundvideos": true,
- "sendAudios": true,
- "sendVoices": true,
- "sendDocs": true,
- "sendPlain": true,
- "viewStats": true,
- "delete": true,
- "viewPrehistory": true,
- "setLocation": true,
- "setUsername": true,
- "setStickers": true,
- "viewMembers": true
}, - "restrictions": [
- {
- "platform": "string",
- "reason": "string",
- "text": "string"
}
], - "bots": [
- {
- "id": "string",
- "username": "string",
- "name": "string",
- "description": "string",
- "commands": [
- {
- "command": "string",
- "description": "string"
}
], - "version": 0
}
], - "linkedChat": "string",
- "migratedFrom": "string",
- "migratedTo": "string",
- "pinnedMessage": "string",
- "ttl": 0,
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}, - "deletedAt": "2019-08-24T14:15:22Z",
- "metadata": {
- "version": 0,
- "hash": "string",
- "eventId": "string",
- "event": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "duplicates": 0
}
}Get Telegram Message by ID
| messageId required | string ID of Telegram Message |
{- "id": "string",
- "tid": "string",
- "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "forwardedFrom": {
- "id": "string",
- "tid": "string",
- "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "signature": "string",
- "scheduled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "repliedTo": {
- "id": "string",
- "tid": "string",
- "topId": "string"
}, - "mediaType": "MESSAGE_MEDIA_TYPE_UNKNOWN",
- "contents": [
- {
- "content": "string",
- "markdown": "string",
- "sha256": "string",
- "entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "duplicates": 0,
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "contact": {
- "phoneNumber": "string",
- "firstName": "string",
- "lastName": "string",
- "userId": 0
}, - "venue": {
- "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "title": "string",
- "address": "string",
- "foursquareId": "string",
- "foursquareType": "string"
}, - "webPage": {
- "id": "string",
- "url": "string",
- "displayUrl": "string",
- "type": "string",
- "siteName": "string",
- "title": "string",
- "description": "string",
- "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "embedUrl": "string",
- "embedType": "string",
- "embedWidth": 0,
- "embedHeight": 0,
- "duration": 0,
- "author": "string"
}, - "poll": {
- "id": "string",
- "question": "string",
- "options": [
- {
- "text": "string",
- "voterCount": 0
}
], - "totalVotes": 0,
- "isClosed": true,
- "isAnonymous": true,
- "type": "MESSAGE_POLL_TYPE_UNKNOWN",
- "multipleAnswers": true,
- "explanation": "string",
- "explanation_entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "openPeriod": 0,
- "closedAt": "2019-08-24T14:15:22Z"
}, - "dice": {
- "emoji": "string",
- "value": 0
}, - "commands": [
- "string"
], - "pinned": true,
- "noForwards": true,
- "spoiler": true,
- "scheduled": true,
- "views": 0,
- "forwards": 0,
- "groupedId": "string",
- "reactions": [
- {
- "emoji": "string",
- "customEmojiId": "string",
- "count": 0,
- "order": 0
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}Get surrounding Telegram messages
| messageId required | string ID of Telegram Message |
| next required | boolean Default: true Fetch messages after the given message |
| previous required | boolean Default: true Fetch messages before the given message |
| size required | integer <int64> [ 1 .. 50 ] Default: 10 Calendar intervals |
{- "total": {
- "previous": 0,
- "next": 0
}, - "messages": [
- {
- "id": "string",
- "tid": "string",
- "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "forwardedFrom": {
- "id": "string",
- "tid": "string",
- "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "signature": "string",
- "scheduled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "repliedTo": {
- "id": "string",
- "tid": "string",
- "topId": "string"
}, - "mediaType": "MESSAGE_MEDIA_TYPE_UNKNOWN",
- "contents": [
- {
- "content": "string",
- "markdown": "string",
- "sha256": "string",
- "entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "duplicates": 0,
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "contact": {
- "phoneNumber": "string",
- "firstName": "string",
- "lastName": "string",
- "userId": 0
}, - "venue": {
- "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "title": "string",
- "address": "string",
- "foursquareId": "string",
- "foursquareType": "string"
}, - "webPage": {
- "id": "string",
- "url": "string",
- "displayUrl": "string",
- "type": "string",
- "siteName": "string",
- "title": "string",
- "description": "string",
- "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "embedUrl": "string",
- "embedType": "string",
- "embedWidth": 0,
- "embedHeight": 0,
- "duration": 0,
- "author": "string"
}, - "poll": {
- "id": "string",
- "question": "string",
- "options": [
- {
- "text": "string",
- "voterCount": 0
}
], - "totalVotes": 0,
- "isClosed": true,
- "isAnonymous": true,
- "type": "MESSAGE_POLL_TYPE_UNKNOWN",
- "multipleAnswers": true,
- "explanation": "string",
- "explanation_entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "openPeriod": 0,
- "closedAt": "2019-08-24T14:15:22Z"
}, - "dice": {
- "emoji": "string",
- "value": 0
}, - "commands": [
- "string"
], - "pinned": true,
- "noForwards": true,
- "spoiler": true,
- "scheduled": true,
- "views": 0,
- "forwards": 0,
- "groupedId": "string",
- "reactions": [
- {
- "emoji": "string",
- "customEmojiId": "string",
- "count": 0,
- "order": 0
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}Get Telegram File by ID
| fileId required | string ID of Telegram File |
{- "id": "string",
- "tid": "string",
- "hash": "string",
- "type": "string",
- "mimeType": "string",
- "name": "string",
- "width": 0,
- "height": 0,
- "size": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "metadata": {
- "event": "string",
- "item": "string",
- "itemType": "string",
- "channelId": "string",
- "storage": "string",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "storage": "string",
- "duplicates": 0,
- "message": {
- "id": "string",
- "tid": "string",
- "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "forwardedFrom": {
- "id": "string",
- "tid": "string",
- "channel": {
- "id": "string",
- "type": "PEER_UNKNOWN",
- "username": "string",
- "name": "string",
- "signature": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "author": {
- "id": "string",
- "username": "string",
- "name": "string",
- "photo": {
- "smallId": "string",
- "smallTid": "string",
- "bigId": "string",
- "bigTid": "string"
}
}, - "signature": "string",
- "scheduled": true,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "repliedTo": {
- "id": "string",
- "tid": "string",
- "topId": "string"
}, - "mediaType": "MESSAGE_MEDIA_TYPE_UNKNOWN",
- "contents": [
- {
- "content": "string",
- "markdown": "string",
- "sha256": "string",
- "entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "duplicates": 0,
- "timestamp": "2019-08-24T14:15:22Z"
}
], - "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "contact": {
- "phoneNumber": "string",
- "firstName": "string",
- "lastName": "string",
- "userId": 0
}, - "venue": {
- "location": {
- "longitude": 0.1,
- "latitude": 0.1
}, - "title": "string",
- "address": "string",
- "foursquareId": "string",
- "foursquareType": "string"
}, - "webPage": {
- "id": "string",
- "url": "string",
- "displayUrl": "string",
- "type": "string",
- "siteName": "string",
- "title": "string",
- "description": "string",
- "media": {
- "id": "string",
- "tid": "string",
- "name": "string",
- "size": 0,
- "mimeType": "string",
- "width": 0,
- "height": 0,
- "length": 0,
- "duration": 0,
- "performer": "string",
- "title": "string",
- "ttl": 0,
- "sticker_animated": true,
- "sticker_video": true,
- "sticker_emoji": "string",
- "sticker_set": "string",
- "thumbs": [
- {
- "id": "string",
- "tid": "string",
- "width": 0,
- "height": 0,
- "size": 0
}
], - "createdAt": "2019-08-24T14:15:22Z"
}, - "embedUrl": "string",
- "embedType": "string",
- "embedWidth": 0,
- "embedHeight": 0,
- "duration": 0,
- "author": "string"
}, - "poll": {
- "id": "string",
- "question": "string",
- "options": [
- {
- "text": "string",
- "voterCount": 0
}
], - "totalVotes": 0,
- "isClosed": true,
- "isAnonymous": true,
- "type": "MESSAGE_POLL_TYPE_UNKNOWN",
- "multipleAnswers": true,
- "explanation": "string",
- "explanation_entities": [
- {
- "type": "MESSAGE_ENTITY_TYPE_UNKNOWN",
- "offset": 0,
- "length": 0,
- "url": "string",
- "userId": "string",
- "language": "string",
- "emojiId": "string"
}
], - "openPeriod": 0,
- "closedAt": "2019-08-24T14:15:22Z"
}, - "dice": {
- "emoji": "string",
- "value": 0
}, - "commands": [
- "string"
], - "pinned": true,
- "noForwards": true,
- "spoiler": true,
- "scheduled": true,
- "views": 0,
- "forwards": 0,
- "groupedId": "string",
- "reactions": [
- {
- "emoji": "string",
- "customEmojiId": "string",
- "count": 0,
- "order": 0
}
], - "deletedAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
}