@@ 82-84 (lines=3) @@ | ||
79 | ||
80 | $buttons = []; |
|
81 | ||
82 | if ($current_page > 1) { |
|
83 | $buttons[] = new InlineKeyboardButton(['text' => $labels['first'], 'callback_data' => $callbacks_data['first']]); |
|
84 | } |
|
85 | if ($current_page > 2) { |
|
86 | $buttons[] = new InlineKeyboardButton(['text' => $labels['previous'], 'callback_data' => $callbacks_data['previous']]); |
|
87 | } |
|
@@ 85-87 (lines=3) @@ | ||
82 | if ($current_page > 1) { |
|
83 | $buttons[] = new InlineKeyboardButton(['text' => $labels['first'], 'callback_data' => $callbacks_data['first']]); |
|
84 | } |
|
85 | if ($current_page > 2) { |
|
86 | $buttons[] = new InlineKeyboardButton(['text' => $labels['previous'], 'callback_data' => $callbacks_data['previous']]); |
|
87 | } |
|
88 | ||
89 | $buttons[] = new InlineKeyboardButton(['text' => $labels['current'], 'callback_data' => $callbacks_data['current']]); |
|
90 | ||
@@ 91-93 (lines=3) @@ | ||
88 | ||
89 | $buttons[] = new InlineKeyboardButton(['text' => $labels['current'], 'callback_data' => $callbacks_data['current']]); |
|
90 | ||
91 | if ($current_page < $max_pages - 1) { |
|
92 | $buttons[] = new InlineKeyboardButton(['text' => $labels['next'], 'callback_data' => $callbacks_data['next']]); |
|
93 | } |
|
94 | if ($current_page < $max_pages) { |
|
95 | $buttons[] = new InlineKeyboardButton(['text' => $labels['last'], 'callback_data' => $callbacks_data['last']]); |
|
96 | } |
|
@@ 94-96 (lines=3) @@ | ||
91 | if ($current_page < $max_pages - 1) { |
|
92 | $buttons[] = new InlineKeyboardButton(['text' => $labels['next'], 'callback_data' => $callbacks_data['next']]); |
|
93 | } |
|
94 | if ($current_page < $max_pages) { |
|
95 | $buttons[] = new InlineKeyboardButton(['text' => $labels['last'], 'callback_data' => $callbacks_data['last']]); |
|
96 | } |
|
97 | ||
98 | return new InlineKeyboard($buttons); |
|
99 | } |