{"action":"created","issue":{"url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/265","repository_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI","labels_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/265/comments","events_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/265/events","html_url":"https://github.com/eternnoir/pyTelegramBotAPI/issues/265","id":193774441,"number":265,"title":"cannot add buttons to keyboard with emoji as bytes","user":{"login":"Yolley","id":13859030,"avatar_url":"https://avatars.githubusercontent.com/u/13859030?v=3","gravatar_id":"","url":"https://api.github.com/users/Yolley","html_url":"https://github.com/Yolley","followers_url":"https://api.github.com/users/Yolley/followers","following_url":"https://api.github.com/users/Yolley/following{/other_user}","gists_url":"https://api.github.com/users/Yolley/gists{/gist_id}","starred_url":"https://api.github.com/users/Yolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yolley/subscriptions","organizations_url":"https://api.github.com/users/Yolley/orgs","repos_url":"https://api.github.com/users/Yolley/repos","events_url":"https://api.github.com/users/Yolley/events{/privacy}","received_events_url":"https://api.github.com/users/Yolley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-06T13:39:23Z","updated_at":"2016-12-12T16:48:28Z","closed_at":null,"body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n1. What version of pyTelegramBotAPI are you using?\r\n2.2.3\r\n\r\n2. What version of python are you using?\r\n3.5.2\r\n\r\nI have a message_handler:\r\n```\r\n@bot.message_handler(commands=['vote'])\r\ndef voter(message):\r\n\tmarkup = telebot.types.ReplyKeyboardMarkup(one_time_keyboard=True, selective=True)\r\n\tmarkup.add(b'\\xF0\\x9F\\x94\\xA5')\r\n\tmarkup.add(b'\\xF0\\x9F\\x93\\xB7')\r\n\tbot.reply_to(message, 'Choose', reply_markup=markup)\r\n```\r\n\r\nWhich tries to make a custom keyboard with emoji's. I represent them as bytes and it works well, when i just send them with send_message.\r\nBut when i try to add a button to keyboard, i get an error:\r\n```\r\nFile \"/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/telebot/types.py\", line 610, in add\r\n    row.append(button.to_dic())\r\nAttributeError: 'bytes' object has no attribute 'to_dic'\r\n```\r\n\r\nI think, it's a bug, cuz if i add to 'add' function something like this:\r\n```\r\n            elif isinstance(button, bytes):\r\n                row.append({'text': button.decode('utf-8')})\r\n```\r\n\r\nIt works well, and buttons add successfully to keyboard.\r\nIs it going to be fixed?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/comments/266483138","html_url":"https://github.com/eternnoir/pyTelegramBotAPI/issues/265#issuecomment-266483138","issue_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/265","id":266483138,"user":{"login":"MasterGroosha","id":2780044,"avatar_url":"https://avatars.githubusercontent.com/u/2780044?v=3","gravatar_id":"","url":"https://api.github.com/users/MasterGroosha","html_url":"https://github.com/MasterGroosha","followers_url":"https://api.github.com/users/MasterGroosha/followers","following_url":"https://api.github.com/users/MasterGroosha/following{/other_user}","gists_url":"https://api.github.com/users/MasterGroosha/gists{/gist_id}","starred_url":"https://api.github.com/users/MasterGroosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasterGroosha/subscriptions","organizations_url":"https://api.github.com/users/MasterGroosha/orgs","repos_url":"https://api.github.com/users/MasterGroosha/repos","events_url":"https://api.github.com/users/MasterGroosha/events{/privacy}","received_events_url":"https://api.github.com/users/MasterGroosha/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T16:48:28Z","updated_at":"2016-12-12T16:48:28Z","body":"Is your problem solved?"}}
{"actor":{"display_login":"MasterGroosha"}}