{"action":"created","issue":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/154","repository_url":"https://api.github.com/repos/yagop/node-telegram-bot-api","labels_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/154/comments","events_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/154/events","html_url":"https://github.com/yagop/node-telegram-bot-api/issues/154","id":161138982,"number":154,"title":"[Request] Inline Keyboard Keep history within buttons...","user":{"login":"deadmann","id":1919241,"avatar_url":"https://avatars.githubusercontent.com/u/1919241?v=3","gravatar_id":"","url":"https://api.github.com/users/deadmann","html_url":"https://github.com/deadmann","followers_url":"https://api.github.com/users/deadmann/followers","following_url":"https://api.github.com/users/deadmann/following{/other_user}","gists_url":"https://api.github.com/users/deadmann/gists{/gist_id}","starred_url":"https://api.github.com/users/deadmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadmann/subscriptions","organizations_url":"https://api.github.com/users/deadmann/orgs","repos_url":"https://api.github.com/users/deadmann/repos","events_url":"https://api.github.com/users/deadmann/events{/privacy}","received_events_url":"https://api.github.com/users/deadmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-20T08:12:44Z","updated_at":"2016-09-06T15:58:08Z","closed_at":null,"body":"i'm using inline keyboard to keep history of buttons, creating a form based on that.\r\n\r\nwhen user choose from, i update callback data to \"X Y [the place he chose]\"\r\nthen later i want to read them inside my search button, but the fact is each button return separate data.\r\nso i have to keep history within a session, which may by server failure get lost, while the telegram still shows that keyboard which lead to bug in my code... \r\nthe other is to inject all data to all buttons, which lead to transfer more than required data, and long network timing, and poor performance if it come to have lot of data, also complex code which themselves can lead to introduce bugs to.\r\nSo i though it can be good if we be able to read data exists within server, now i have no idea of implementation,\r\n- introducing secondary method: you have to talk twice to telegram apis, mean you have to open connection twice which mean more time, plus user latency, low performance.\r\n- sending all buttons all the time even when they are not required, still somehow it's low on performance, but this time it won't lead to complex application.\r\n- generate secondary keyboard which KeepHistory and have extra field, or even better, introduce 1 (value), 2 (key value) extra field within the keyboard, if they are filled, then telegram sent them back, otherwise api don't returns buttons without these values."},"comment":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/comments/244998641","html_url":"https://github.com/yagop/node-telegram-bot-api/issues/154#issuecomment-244998641","issue_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/154","id":244998641,"user":{"login":"GochoMugo","id":4707579,"avatar_url":"https://avatars.githubusercontent.com/u/4707579?v=3","gravatar_id":"","url":"https://api.github.com/users/GochoMugo","html_url":"https://github.com/GochoMugo","followers_url":"https://api.github.com/users/GochoMugo/followers","following_url":"https://api.github.com/users/GochoMugo/following{/other_user}","gists_url":"https://api.github.com/users/GochoMugo/gists{/gist_id}","starred_url":"https://api.github.com/users/GochoMugo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GochoMugo/subscriptions","organizations_url":"https://api.github.com/users/GochoMugo/orgs","repos_url":"https://api.github.com/users/GochoMugo/repos","events_url":"https://api.github.com/users/GochoMugo/events{/privacy}","received_events_url":"https://api.github.com/users/GochoMugo/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T15:58:08Z","updated_at":"2016-09-06T15:58:08Z","body":"I am **not** quite sure I understood your query but it sounds like a feature request for the Telegram Bot API. If so, please [see this FAQ section](https://core.telegram.org/bots/faq#will-you-add-x-to-the-bot-api).\r\n\r\nIf that is **not** the case, your use-case seems quite specialized. It seems better to implement that in a higher-level library using this package under-the-hood. This library is basically a wrapper around the API without much added niceties."}}
{"actor":{"display_login":"GochoMugo"}}