MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / row

Method row

telebot/types.py:2805–2818  ·  view source on GitHub ↗

Adds a list of KeyboardButton to the keyboard. This function does not consider row_width. ReplyKeyboardMarkup#row("A")#row("B", "C")#to_json() outputs '{keyboard: [["A"], ["B", "C"]]}' See https://core.telegram.org/bots/api#replykeyboardmarkup :param args: strings

(self, *args)

Source from the content-addressed store, hash-verified

2803 return self
2804
2805 def row(self, *args) -> 'ReplyKeyboardMarkup':
2806 """
2807 Adds a list of KeyboardButton to the keyboard. This function does not consider row_width.
2808 ReplyKeyboardMarkup#row("A")#row("B", "C")#to_json() outputs '{keyboard: [["A"], ["B", "C"]]}'
2809 See https://core.telegram.org/bots/api#replykeyboardmarkup
2810
2811 :param args: strings
2812 :type args: :obj:`str`
2813
2814 :return: self, to allow function chaining.
2815 :rtype: :class:`telebot.types.ReplyKeyboardMarkup`
2816 """
2817
2818 return self.add(*args, row_width=self.max_row_keys)
2819
2820 def to_json(self):
2821 json_dict = {'keyboard': self.keyboard}

Callers 2

startFunction · 0.95
startFunction · 0.95

Calls 1

addMethod · 0.95

Tested by

no test coverage detected