From 9421a967fc933bc5ae2c34a0c8e173602edf45b3 Mon Sep 17 00:00:00 2001 From: PyMaster <59120866+pystorage@users.noreply.github.com> Date: Sun, 6 Sep 2020 21:10:37 +0300 Subject: [PATCH] Delete pagination_keyboard.py --- examples/bot/modules/pagination_keyboard.py | 86 --------------------- 1 file changed, 86 deletions(-) delete mode 100644 examples/bot/modules/pagination_keyboard.py diff --git a/examples/bot/modules/pagination_keyboard.py b/examples/bot/modules/pagination_keyboard.py deleted file mode 100644 index 24a0686..0000000 --- a/examples/bot/modules/pagination_keyboard.py +++ /dev/null @@ -1,86 +0,0 @@ -from .. import App -from pyrogram import Filters, InlineKeyboardButton -from pykeyboard import InlinePaginationKeyboard - - -TEXT = 'sed risus pretium quam vulputate dignissim suspendisse in est ante in nibh mauris cursus mattis molestie a iaculis at erat pellentesque adipiscing commodo elit at imperdiet dui accumsan sit amet nulla facilisi morbi tempus iaculis urna id volutpat lacus laoreet non curabitur gravida arcu ac tortor dignissim convallis aenean et' - - -@App.on_message(Filters.command('pagination_keyboard')) -def pagination_keyboard_command(client, message): - message.reply_text( - 'Pagination inline keyboard:\n\n' - '/pagination_keyboard_3 - 3 pages\n' - '/pagination_keyboard_5 - 5 pages\n' - '/pagination_keyboard_9 - 9 pages\n' - '/pagination_keyboard_25 - 25 pages\n' - '/pagination_keyboard_100 - 100 pages\n' - '/pagination_keyboard_150 - 150 page and buttons' - ) - - -@App.on_message(Filters.command('pagination_keyboard_3')) -def pagination_keyboard_3_command(client, message): - keyboard = InlinePaginationKeyboard(3, 3, 'pagination_keyboard#{number}') - - message.reply_text( - f'3 page pagination:\n\n {TEXT}', - reply_markup=keyboard - ) - - -@App.on_message(Filters.command('pagination_keyboard_5')) -def pagination_keyboard_5_command(client, message): - keyboard = InlinePaginationKeyboard(5, 3, 'pagination_keyboard#{number}') - - message.reply_text( - f'5 page pagination:\n\n {TEXT}', - reply_markup=keyboard - ) - - -@App.on_message(Filters.command('pagination_keyboard_9')) -def pagination_keyboard_9_command(client, message): - keyboard = InlinePaginationKeyboard(9, 5, 'pagination_keyboard#{number}') - - message.reply_text( - f'9 page pagination:\n\n {TEXT}', - reply_markup=keyboard - ) - - -@App.on_message(Filters.command('pagination_keyboard_25')) -def pagination_keyboard_25_command(client, message): - keyboard = InlinePaginationKeyboard( - 25, 14, 'pagination_keyboard#{number}') - - message.reply_text( - f'25 page pagination:\n\n {TEXT}', - reply_markup=keyboard - ) - - -@App.on_message(Filters.command('pagination_keyboard_100')) -def pagination_keyboard_100_command(client, message): - keyboard = InlinePaginationKeyboard( - 100, 100, 'pagination_keyboard#{number}') - - message.reply_text( - f'100 page pagination:\n\n {TEXT}', - reply_markup=keyboard - ) - - -@App.on_message(Filters.command('pagination_keyboard_150')) -def pagination_keyboard_150_command(client, message): - keyboard = InlinePaginationKeyboard( - 150, 123, 'pagination_keyboard#{number}') - keyboard.row( - InlineKeyboardButton('Back', 'pagination_keyboard#back'), - InlineKeyboardButton('Close', 'pagination_keyboard#close') - ) - - message.reply_text( - f'150 page pagination and buttons:\n\n {TEXT}', - reply_markup=keyboard - )