{"action":"created","issue":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/232","repository_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot","labels_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/232/comments","events_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/232/events","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/232","id":147621275,"number":232,"title":"Bot API 2.0","user":{"login":"leandrotoledo","id":615742,"avatar_url":"https://avatars.githubusercontent.com/u/615742?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrotoledo","html_url":"https://github.com/leandrotoledo","followers_url":"https://api.github.com/users/leandrotoledo/followers","following_url":"https://api.github.com/users/leandrotoledo/following{/other_user}","gists_url":"https://api.github.com/users/leandrotoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrotoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrotoledo/subscriptions","organizations_url":"https://api.github.com/users/leandrotoledo/orgs","repos_url":"https://api.github.com/users/leandrotoledo/repos","events_url":"https://api.github.com/users/leandrotoledo/events{/privacy}","received_events_url":"https://api.github.com/users/leandrotoledo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"leandrotoledo","id":615742,"avatar_url":"https://avatars.githubusercontent.com/u/615742?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrotoledo","html_url":"https://github.com/leandrotoledo","followers_url":"https://api.github.com/users/leandrotoledo/followers","following_url":"https://api.github.com/users/leandrotoledo/following{/other_user}","gists_url":"https://api.github.com/users/leandrotoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrotoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrotoledo/subscriptions","organizations_url":"https://api.github.com/users/leandrotoledo/orgs","repos_url":"https://api.github.com/users/leandrotoledo/repos","events_url":"https://api.github.com/users/leandrotoledo/events{/privacy}","received_events_url":"https://api.github.com/users/leandrotoledo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/milestones/1","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/milestones/4.0","labels_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/milestones/1/labels","id":1552197,"number":1,"title":"4.0","description":"","creator":{"login":"jh0ker","id":3945220,"avatar_url":"https://avatars.githubusercontent.com/u/3945220?v=3","gravatar_id":"","url":"https://api.github.com/users/jh0ker","html_url":"https://github.com/jh0ker","followers_url":"https://api.github.com/users/jh0ker/followers","following_url":"https://api.github.com/users/jh0ker/following{/other_user}","gists_url":"https://api.github.com/users/jh0ker/gists{/gist_id}","starred_url":"https://api.github.com/users/jh0ker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jh0ker/subscriptions","organizations_url":"https://api.github.com/users/jh0ker/orgs","repos_url":"https://api.github.com/users/jh0ker/repos","events_url":"https://api.github.com/users/jh0ker/events{/privacy}","received_events_url":"https://api.github.com/users/jh0ker/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":3,"state":"open","created_at":"2016-01-29T22:17:24Z","updated_at":"2016-04-18T19:22:21Z","due_on":null,"closed_at":null},"comments":19,"created_at":"2016-04-12T03:23:11Z","updated_at":"2016-04-21T14:22:05Z","closed_at":null,"body":"**Official announcement**: https://core.telegram.org/bots/2-0-intro\r\n**Changelog**: https://core.telegram.org/bots/api-changelog\r\n\r\n- [x] New inline keyboards with callback and URL buttons. Added new objects InlineKeyboardMarkup, InlineKeyboardButton and CallbackQuery, added _reply_markup_ fields to all InlineQueryResult objects. Added field _callback_query_ to the Update object, new method answerCallbackQuery.\r\n\r\n- [x] Bots can now edit their messages. Added methods editMessageText, editMessageCaption, editMessageReplyMarkup.\r\n\r\n- [x] Bots can request location and phone number from the user. The _keyboard_ field in the object ReplyKeyboardMarkup now supports KeyboardButton, a new object that can have the fields _request_location_ and _request_contact_.\r\n\r\n- [x] Added support for all content types available on Telegram. 19 types of InlineQueryResult objects are now supported.\r\n\r\n- [x] Inline bots can now subsitute all kinds of content with text. Added 4 types of InputMessageContent objects.\r\n\r\n- [x] You inline bot can also ask users for permission to use their location. Added the new Botfather command /setinlinegeo, added field _location_ to the InlineQuery object, added fields _location_ and _inline_message_id_ to the ChosenInlineResult object.\r\n\r\n- [x] Added an easy way to switch between inline mode and a private chat with the bot – useful for settings, establishing external connections and teaching users how to use your bot in inline mode. Added parameters _switch_pm_text_ and _switch_pm_parameter_ to the method answerInlineQuery.\r\n\r\n- [x] Added group administration tools. New methods kickChatMember and unbanChatMember.\r\n\r\n- [x] Added fields _venue_, _pinned_message_ and _entities_ to the Message object. Added new objects MessageEntity and Venue, new methods sendVenue and sendContact.\r\n\r\n- [x] Renamed the fields _new_chat_participant_ and _left_chat_participant_ of the Message object to _new_chat_member_ and _left_chat_member_."},"comment":{"url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/comments/212940158","html_url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/232#issuecomment-212940158","issue_url":"https://api.github.com/repos/python-telegram-bot/python-telegram-bot/issues/232","id":212940158,"user":{"login":"aryanbaghi","id":4646461,"avatar_url":"https://avatars.githubusercontent.com/u/4646461?v=3","gravatar_id":"","url":"https://api.github.com/users/aryanbaghi","html_url":"https://github.com/aryanbaghi","followers_url":"https://api.github.com/users/aryanbaghi/followers","following_url":"https://api.github.com/users/aryanbaghi/following{/other_user}","gists_url":"https://api.github.com/users/aryanbaghi/gists{/gist_id}","starred_url":"https://api.github.com/users/aryanbaghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryanbaghi/subscriptions","organizations_url":"https://api.github.com/users/aryanbaghi/orgs","repos_url":"https://api.github.com/users/aryanbaghi/repos","events_url":"https://api.github.com/users/aryanbaghi/events{/privacy}","received_events_url":"https://api.github.com/users/aryanbaghi/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T14:22:04Z","updated_at":"2016-04-21T14:22:04Z","body":"```\r\nkeyboard = telegram.InlineKeyboardMarkup(\r\n        inline_keyboard=[\r\n            [telegram.InlineKeyboardButton(text=u'Get random music')],\r\n            [telegram.InlineKeyboardButton(text=u'Send music to friends', switch_inline_query='')],\r\n        ],\r\n)\r\nbot.sendMessage(\r\n    chat_id=user.chat_id,\r\n    text=u'Some text',\r\n    reply_markup=keyboard\r\n)\r\n```\r\nThis code should have result like this screen shot I get from telegram site.\r\n![ea6163411c7eb4f4dc](https://cloud.githubusercontent.com/assets/4646461/14712290/b8fcf528-07f1-11e6-8635-df5985f13f63.png)"}}