Skip to content

Instantly share code, notes, and snippets.

@sk22
Last active February 13, 2016 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sk22/99fc3dce14128c8ef985 to your computer and use it in GitHub Desktop.
Save sk22/99fc3dce14128c8ef985 to your computer and use it in GitHub Desktop.
Information for Telegram Bots
{
"update_id": { "__type": "integer" },
"message": {
"__class": "\\in\\Message",
"message_id": { "__type": "integer" },
"date": { "__type": "integer" },
"from": {
"__class": "\\in\\User",
"id": { "__type": "string" },
"username": { "__type": "string" },
"first_name": { "__type": "string" },
"last_name": { "__type": "string" }
},
"chat": {
"__class": "\\in\\Chat",
"id": { "__type": "string" },
"username": { "__type": "string" },
"first_name": { "__type": "string" },
"last_name": { "__type": "string" },
"title": { "__type": "string" },
"type": { "__type": "string" }
},
"text": { "__method": "sendMessage", "__out_class": "\\out\\Message", "__type": "string" },
"audio": { "__method": "sendAudio", "__out_class": "\\out\\Audio", "__type": "string" },
"document": { "__method": "sendDocument", "__out_class": "\\out\\Document", "__type": "string" },
"photo": { "__method": "sendPhoto", "__out_class": "\\out\\Photo", "__type": "string" },
"sticker": { "__method": "sendSticker", "__out_class": "\\out\\Sticker", "__type": "string" },
"video": { "__method": "sendVideo", "__out_class": "\\out\\Video", "__type": "string" },
"voice": { "__method": "sendVoice", "__out_class": "\\out\\Voice", "__type": "string" }
},
"inline_query": {
"__class": "\\in\\InlineQuery",
"id": { "__type": "string" },
"from": { "__class": "\\in\\User" },
"query": { "__type": "string" },
"offset": { "__type": "integer" }
},
"chosen_inline_result": {
"__class": "\\in\\ChosenInlineResult",
"result_id": { "__type": "string" },
"from": { "__class": "\\in\\User" },
"query": { "__type": "string" }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment