From 7de3d98fc5816729b09a08cfbd5de81c16dae852 Mon Sep 17 00:00:00 2001
From: PyMaster <59120866+pystorage@users.noreply.github.com>
Date: Sun, 6 Sep 2020 21:10:54 +0300
Subject: [PATCH] Delete inline_keyboard.py
---
examples/bot/modules/inline_keyboard.py | 70 -------------------------
1 file changed, 70 deletions(-)
delete mode 100644 examples/bot/modules/inline_keyboard.py
diff --git a/examples/bot/modules/inline_keyboard.py b/examples/bot/modules/inline_keyboard.py
deleted file mode 100644
index e6feb66..0000000
--- a/examples/bot/modules/inline_keyboard.py
+++ /dev/null
@@ -1,70 +0,0 @@
-from .. import App
-from pykeyboard import InlineKeyboard
-from pyrogram import Filters, InlineKeyboardButton
-
-
-@App.on_message(Filters.command('inline_keyboard'))
-def inline_keyboard_command(client, message):
- message.reply_text(
- 'Inline keyboard:\n\n'
- '/add_inline_button - add buttons\n'
- '/row_inline_button - add button row\n'
- )
-
-
-@App.on_message(Filters.command('add_inline_button'))
-def add_inline_button_command(client, message):
- keyboard = InlineKeyboard(row_width=3)
- keyboard.add(
- InlineKeyboardButton('1', 'inline_keyboard#1'),
- InlineKeyboardButton('2', 'inline_keyboard#2'),
- InlineKeyboardButton('3', 'inline_keyboard#3'),
- InlineKeyboardButton('4', 'inline_keyboard#4'),
- InlineKeyboardButton('5', 'inline_keyboard#5'),
- InlineKeyboardButton('6', 'inline_keyboard#6'),
- InlineKeyboardButton('7', 'inline_keyboard#7')
- )
- message.reply_text(
- 'Add buttons:\n\n'
- 'keyboard = InlineKeyboard(row_width=3)
\n'
- 'keyboard.add(
\n'
- " InlineKeyboardButton('1', 'inline_keyboard#1'),
\n"
- " InlineKeyboardButton('2', 'inline_keyboard#2'),
\n"
- " InlineKeyboardButton('3', 'inline_keyboard#3'),
\n"
- " InlineKeyboardButton('4', 'inline_keyboard#4'),
\n"
- " InlineKeyboardButton('5', 'inline_keyboard#5'),
\n"
- " InlineKeyboardButton('6', 'inline_keyboard#6'),
\n"
- " InlineKeyboardButton('7', 'inline_keyboard#7')
\n"
- ')
\n',
- reply_markup=keyboard
- )
-
-
-@App.on_message(Filters.command('row_inline_button'))
-def row_inline_button_command(client, message):
- keyboard = InlineKeyboard()
- keyboard.row(InlineKeyboardButton('1', 'inline_keyboard#1'))
- keyboard.row(
- InlineKeyboardButton('2', 'inline_keyboard#2'),
- InlineKeyboardButton('3', 'inline_keyboard#3')
- )
- keyboard.row(InlineKeyboardButton('4', 'inline_keyboard#4'))
- keyboard.row(
- InlineKeyboardButton('5', 'inline_keyboard#5'),
- InlineKeyboardButton('6', 'inline_keyboard#6')
- )
- message.reply_text(
- 'Add button row:\n\n'
- "keyboard = InlineKeyboard()
\n"
- "keyboard.row(InlineKeyboardButton('1', 'inline_keyboard#1'))
\n"
- "keyboard.row(
\n"
- " InlineKeyboardButton('2', 'inline_keyboard#2'),
\n"
- " InlineKeyboardButton('3', 'inline_keyboard#3')
\n"
- ")
\n"
- "keyboard.row(InlineKeyboardButton('4', 'inline_keyboard#4'))
\n"
- "keyboard.row(
\n"
- " InlineKeyboardButton('5', 'inline_keyboard#5'),
\n"
- " InlineKeyboardButton('6', 'inline_keyboard#6')
\n"
- ")
\n",
- reply_markup=keyboard
- )