Package: pykeyboard
🎉 Thank you for 100k downloads 🎉 I love you...🥰PykeyboardWhat's new?InstallationDocumentationInline KeyboardInline Keyboard add buttonsInline Keyboard row buttonsPagination inline keyboardPagination 3 pagesPagination 5 pagesPagination 9 pagesPagination 100 pagesPagination 150 pages and buttonsLanguages inline keyboardReply KeyboardReply Keyboard add buttonsReply Keyboard row buttonsWhat's new?Overriding theKeyboardButton,ReplyKeyboardRemove,ForceReply,InlineKeyboardButtonmethods inReplyButton,ReplyKeyboardRemove,ForceReply,InlineButton.Added new methodInlineKeyboard. To sendlanguage selection keyboard.Minor changes due to update in Pyrogram.InstallationpipinstallpykeyboardDocumentationInline KeyboardfrompykeyboardimportInlineKeyboardParameters:row_width (integer, default 3)Inline Keyboard add buttonsCodefrompykeyboardimportInlineKeyboard,InlineButtonkeyboard=InlineKeyboard(row_width=3)keyboard.add(InlineButton('1','inline_keyboard:1'),InlineButton('2','inline_keyboard:2'),InlineButton('3','inline_keyboard:3'),InlineButton('4','inline_keyboard:4'),InlineButton('5','inline_keyboard:5'),InlineButton('6','inline_keyboard:6'),InlineButton('7','inline_keyboard:7'))ResultInline Keyboard row buttonsCodefrompykeyboardimportInlineKeyboard,InlineButtonkeyboard=InlineKeyboard()keyboard.row(InlineButton('1','inline_keyboard:1'))keyboard.row(InlineButton('2','inline_keyboard:2'),InlineButton('3','inline_keyboard:3'))keyboard.row(InlineButton('4','inline_keyboard:4'))keyboard.row(InlineButton('5','inline_keyboard:5'),InlineButton('6','inline_keyboard:6'))ResultPagination inline keyboardfrompykeyboardimportInlineKeyboardParameters:count_pages (integer)current_page (integer)callback_pattern (string) - use of the{number}pattern is requiredPagination 3 pagesCodefrompykeyboardimportInlineKeyboardkeyboard=InlineKeyboard()keyboard.paginate(3,3,'pagination_keyboard:{number}')ResultPagination 5 pagesCodefrompykeyboardimportInlineKeyboardkeyboard=InlineKeyboard()keyboard.paginate(5,3,'pagination_keyboard:{number}')ResultPagination 9 pagesCodefrompykeyboardimportInlineKeyboardkeyboard=InlineKeyboard()keyboard.paginate(9,5,'pagination_keyboard:{number}')ResultPagination 100 pagesCodefrompykeyboardimportInlineKeyboardkeyboard=InlineKeyboard()keyboard.paginate(100,100,'pagination_keyboard:{number}')ResultPagination 150 pages and buttonsCodefrompykeyboardimportInlineKeyboard,InlineButtonkeyboard=InlineKeyboard()keyboard.paginate(150,123,'pagination_keyboard:{number}')keyboard.row(InlineButton('Back','pagination_keyboard:back'),InlineButton('Close','pagination_keyboard:close'))ResultLanguages inline keyboardfrompykeyboardimportInlineKeyboardParameters:callback_pattern (string) - use of the{locale}pattern is requiredlocales (string | list) - list of language codesbe_BY - Belarusiande_DE - Germanzh_CN - Chineseen_US - Englishfr_FR - Frenchid_ID - Indonesianit_IT - Italianko_KR - Koreantr_TR - Turkishru_RU - Russianes_ES - Spanishuk_UA - Ukrainianuz_UZ - Uzbekrow_width (integer, default 2)P.S. To add new languages, write to me in@PyMastertelegram.CodefrompykeyboardimportInlineKeyboardkeyboard=InlineKeyboard(row_width=3)keyboard.languages('languages:{locale}',['en_US','ru_RU','id_ID'],2)ResultReply KeyboardfrompykeyboardimportReplyKeyboardParameters:resize_keyboard (bool, optional)one_time_keyboard (bool, optional)selective (bool, optional)row_width (integer, default 3)Reply Keyboard add buttonsCodefrompykeyboardimportReplyKeyboard,ReplyButtonkeyboard=ReplyKeyboard(row_width=3)keyboard.add(ReplyButton('Reply button 1'),ReplyButton('Reply button 2'),ReplyButton('Reply button 3'),ReplyButton('Reply button 4'),ReplyButton('Reply button 5'))ResultReply Keyboard row buttonsCodefrompykeyboardimportReplyKeyboard,ReplyButtonkeyboard=ReplyKeyboard()keyboard.row(ReplyButton('Reply button 1'))keyboard.row(ReplyButton('Reply button 2'),ReplyButton('Reply button 3'))keyboard.row(ReplyButton('Reply button 4'))keyboard.row(ReplyButton('Reply button 5'))Result