Browse Source

Row_width

TheHamkerCat 5 năm trước cách đây
mục cha
commit
8564636e9f
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      wbb/core/keyboard.py

+ 1 - 1
wbb/core/keyboard.py

@@ -52,4 +52,4 @@ def ikb(data: dict, row_width: int = 2):
     Converts a dict to pyrogram buttons
     Ex: dict_to_keyboard({"click here": "this is callback data"})
     """
-    return keyboard(data.items(), row_width=2)
+    return keyboard(data.items(), row_width=row_width)