Returns `buttons`, but will make an API call to find the
        input chat (needed for the buttons) unless it's already cached.
428370
async def get_buttons(self):
        
        if not self.buttons and self.reply_markup:
            chat = await self.get_input_chat()
            if not chat:
                return
            try:
                bot = self._needed_markup_bot()
            except ValueError:
                await self._reload_message()
                bot = self._needed_markup_bot()  # TODO use via_input_bot

            self._set_buttons(chat, bot)

        return self._buttons
111834
def get(self, request, bot_id, id, format=None):
                
        return super(TelegramChatStateDetail, self).get(request, bot_id, id, format)
1066338
def _set_buttons(self, chat, bot):
        
        if isinstance(self.reply_markup, (
                types.ReplyInlineMarkup, types.ReplyKeyboardMarkup)):
            self._buttons = [[
                MessageButton(self._client, button, chat, bot, self.id)
                for button in row.buttons
            ] for row in self.reply_markup.rows]
            self._buttons_flat = [x for row in self._buttons for x in row]
107142
def chat_search(self, room_id, search_text, **kwargs):
        """"""
        return self.__call_api_get('chat.search', roomId=room_id, searchText=search_text, kwargs=kwargs)
1063898
def get(self, request, bot_id, id, format=None):
                
        return super(MessengerChatStateDetail, self).get(request, bot_id, id, format)
728407
function button(sAction) {
				var sText = rb && rb.getText("MSGBOX_" + sAction),
					oButton = new Button({
						id: sDialogId + "--btn-" + sAction,
						text: sText || sAction,
						press: function () {
							oResult = sAction;
							oDialog.close();
						}
					});
				if (sAction === oDefaultAction) {
					oDefaultButton = oButton;
				}
				return oButton;
			}
175622
def __emulate_buttons(self, changed_buttons, timeval=None):
        """"""
        events = []
        for button in changed_buttons:
            code, value, ev_type = self.__map_button(button)
            event = self.create_event_object(
                ev_type,
                code,
                value,
                timeval=timeval)
            events.append(event)
        return events
845743
def on_button(callback, args=(), buttons=(LEFT, MIDDLE, RIGHT, X, X2), types=(UP, DOWN, DOUBLE)):
    
    if not isinstance(buttons, (tuple, list)):
        buttons = (buttons,)
    if not isinstance(types, (tuple, list)):
        types = (types,)

    def handler(event):
        if isinstance(event, ButtonEvent):
            if event.event_type in types and event.button in buttons:
                callback(*args)
    _listener.add_handler(handler)
    return handler
935283
def button(value)
      # Don't use ele_index because that only works on one element type.
      # Android needs to combine button and image button to match iOS.
      if value.is_a? Numeric
        index = value
        raise "#{index} is not a valid index. Must be >= 1" if index <= 0

        # 1 indexed
        return find_element :uiautomator, _button_visible_selectors(index: index)
      end

      find_element :uiautomator, _button_contains_string(value)
    end
523040
function (aButtons) {
			var iButtonsEnabled = 0;
			for (var i = 0; i < aButtons.length; i++) {
				if (aButtons[i].getEnabled()) {
					iButtonsEnabled++;
					if (!this._iFirstVisibleButtonIndex) {
						this._iFirstVisibleButtonIndex = i;
					}
				}
			}

			return iButtonsEnabled;
		}
881226
def _makeButtons(self):
        
        self.button = button = urwid.Button(u"OK")
        urwid.connect_signal(button, "click", self._completed)
        return [self.button]
1180684
def data(self):
        """"""
        if isinstance(self.button, types.KeyboardButtonCallback):
            return self.button.data
214872
function buttonsFromAllFeatures() {
      const buttons = $scope.features.buttons.map( ( button, i ) => {
         button.fallbackIndex = i + DEFAULT_BUTTONS.length;
         return button;
      } );
      DEFAULT_BUTTONS.forEach( ( buttonFeatureName, i ) => {
         const button = $scope.features[ buttonFeatureName ];
         if( button ) {
            button.fallbackIndex = i;
            buttons.push( button );
         }
      } );
      return buttons.filter( button => button.enabled );
   }
1045319
async def update_chat(self):
        
        other = await self.bot.get_chat(self.id)

        for key, value in other:
            self[key] = value
1118137
def getChat(self, chat_id):
        
        p = _strip(locals())
        return self._api_request('getChat', _rectify(p))
1043473
def get_chat(self, chat_id):
        
        result = apihelper.get_chat(self.token, chat_id)
        return types.Chat.de_json(result)
736622
def __buttonEvent(event):
    
    global  boxRoot, __widgetTexts, __replyButtonText
    __replyButtonText = __widgetTexts[event.widget]
    boxRoot.quit()