File size: 13,794 Bytes
e39b867
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
-- WeBook Event Messages for Telegram Bot
-- These messages follow the messageManager.getMessage pattern used in the codebase
-- Each message has both Arabic (ar_value) and English (en_value) versions

-- Main Menu WeBook Buttons
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('btn_webook_events', 
 '🎭 أحداث WeBook', 
 '🎭 WeBook Events', 
 'Button text for WeBook events menu');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('btn_webook_book_by_url', 
 '🎟️ حجز التذاكر برابط الحدث', 
 '🎟️ Book Tickets by Event URL', 
 'Button text for booking tickets by event URL');

-- WeBook Event URL Input
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_enter_event_url', 
 '🔗 يرجى إرسال رابط الحدث الذي تريد حجز التذاكر له (مثال: https://webook.com/en/events/mdlbeast-beast-house-ec/book)', 
 '🔗 Please send the event URL you want to book tickets for (e.g. https://webook.com/en/events/mdlbeast-beast-house-ec/book)', 
 'Message asking user to enter WeBook event URL');

-- Invalid URL
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_invalid_url', 
 '❌ رابط الحدث غير صحيح. يرجى إرسال رابط صحيح لحدث WeBook.', 
 '❌ Invalid event URL. Please send a valid WeBook event URL.', 
 'Error message for invalid WeBook event URL');

-- URL Accepted
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_url_accepted', 
 '✅ تم قبول الرابط!

📍 الرابط الأصلي: {original_url}
🔗 الرابط المصحح: {fixed_url}

كم عدد التذاكر التي تريد حجزها؟ (يرجى إدخال رقم)', 
 '✅ URL accepted!

📍 Original URL: {original_url}
🔗 Fixed URL: {fixed_url}

How many tickets do you want to book? (Please enter a number)', 
 'Message confirming URL acceptance and asking for ticket count');

-- Invalid Ticket Count
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_invalid_ticket_count', 
 '❌ يرجى إدخال عدد صحيح من التذاكر.', 
 '❌ Please enter a valid number of tickets.', 
 'Error message for invalid ticket count');

-- No Tickets Available
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_no_tickets_available', 
 '❌ لا توجد تذاكر متاحة حالياً لهذا الحدث:

📍 رابط الحدث: {event_url}
🎫 التذاكر المطلوبة: {tickets_requested}

يرجى المحاولة مرة أخرى لاحقاً.', 
 '❌ No tickets are currently available for this event:

📍 Event URL: {event_url}
🎫 Tickets Requested: {tickets_requested}

Please try again later.', 
 'Message when no tickets are available for the event');

-- Booking Summary
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_summary', 
 '📋 ملخص الحجز:

📍 رابط الحدث: {event_url}
🎫 التذاكر المطلوبة: {tickets_requested}
📊 الحد الأقصى للتذاكر لكل حساب: {max_tickets_per_account}

', 
 '📋 Booking Summary:

📍 Event URL: {event_url}
🎫 Tickets Requested: {tickets_requested}
📊 Max Tickets Per Account: {max_tickets_per_account}

', 
 'Booking summary message before payment question');

-- Payment Question
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_payment_question', 
 'هل تريد إجراء الدفع تلقائياً؟', 
 'Do you want to make payment automatically?', 
 'Question asking if user wants automatic payment');

-- Request Expired
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_request_expired', 
 'انتهت صلاحية طلبك أو أنه غير صحيح. يرجى البدء من جديد.', 
 'Your request expired or is invalid. Please start again.', 
 'Message when booking request has expired');

-- Processing Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_processing_payment', 
 '💳 يرجى الانتظار بينما نعالج حجزك والدفع...', 
 '💳 Please wait while we process your booking and payment...', 
 'Message when processing booking with automatic payment');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_processing_manual', 
 '📝 حجز تذاكرك بدون دفع تلقائي...', 
 '📝 Booking your tickets without automatic payment...', 
 'Message when processing booking without automatic payment');

-- Account Related Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_error_fetching_accounts', 
 'خطأ في جلب الحسابات للحجز.', 
 'Error fetching accounts for booking.', 
 'Error message when failing to fetch accounts');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_no_available_accounts', 
 'لا توجد حسابات نشطة متاحة مع بيانات الاعتماد للحجز.', 
 'No active accounts with credentials available for booking.', 
 'Message when no accounts are available for booking');

-- Payment Types
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_automatic_payment', 
 '💳 الدفع التلقائي', 
 '💳 Automatic Payment', 
 'Label for automatic payment type');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_manual_payment', 
 '📝 الدفع اليدوي', 
 '📝 Manual Payment', 
 'Label for manual payment type');

-- Starting Process
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_starting_process', 
 '🚀 بدء عملية الحجز:

📍 رابط الحدث: {event_url}
🔗 الرابط المصحح: {fixed_url}
🎫 التذاكر المطلوبة: {tickets_requested}
💳 نوع الدفع: {payment_type}
👥 الحسابات المتاحة: {available_accounts}
⚡ وضع المعالجة: متوازي ({max_concurrent} حسابات في وقت واحد)

معالجة الحسابات بالتوازي للحجز الأسرع...', 
 '🚀 Starting booking process:

📍 Event URL: {event_url}
🔗 Fixed URL: {fixed_url}
🎫 Tickets Requested: {tickets_requested}
💳 Payment Type: {payment_type}
👥 Available Accounts: {available_accounts}
⚡ Processing Mode: Parallel ({max_concurrent} accounts at once)

Processing accounts in parallel for faster booking...', 
 'Message when starting the booking process');

-- Booking Status Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_all_tickets_booked', 
 'تم حجز جميع التذاكر المطلوبة.', 
 'All required tickets have been booked.', 
 'Message when all required tickets are booked');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_logging_in', 
 '🔐 تسجيل الدخول بالحساب: {email}', 
 '🔐 Logging in with account: {email}', 
 'Message when logging in with an account');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_login_failed', 
 '❌ فشل تسجيل الدخول بالحساب: {email}. جاري تجربة الحساب التالي...', 
 '❌ Login failed for account: {email}. Trying next account...', 
 'Message when login fails for an account');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_attempting_booking', 
 '🎯 محاولة حجز التذاكر مع: {email}', 
 '🎯 Attempting to book tickets with: {email}', 
 'Message when attempting to book with an account');

-- Booking Success Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_success_auto', 
 '✅ تم حجز {tickets} تذاكر بنجاح مع {email} (الدفع التلقائي)
📊 إجمالي التذاكر المحجوزة: {total_obtained}/{total_needed}', 
 '✅ Successfully booked {tickets} tickets with {email} (Auto Payment)
📊 Total tickets obtained: {total_obtained}/{total_needed}', 
 'Message when automatic booking is successful');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_success_manual', 
 '✅ تم حجز {tickets} تذاكر بنجاح مع {email} (الدفع اليدوي)
📊 إجمالي التذاكر المحجوزة: {total_obtained}/{total_needed}', 
 '✅ Successfully booked {tickets} tickets with {email} (Manual Payment)
📊 Total tickets obtained: {total_obtained}/{total_needed}', 
 'Message when manual booking is successful');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_success_manual_with_payment', 
 '🎟️ تم حجز {tickets} تذاكر بنجاح مع {email} (الدفع اليدوي)!

📊 إجمالي التذاكر المحجوزة: {total_obtained}/{total_needed}

لإكمال هذا الحجز، يرجى إنهاء الدفع:', 
 '🎟️ Successfully booked {tickets} tickets with {email} (Manual Payment)!

📊 Total tickets obtained: {total_obtained}/{total_needed}

To complete this booking, please finish the payment:', 
 'Message when manual booking is successful with payment URL');

-- Booking Failure Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_failed', 
 '❌ لا توجد تذاكر متاحة أو فشل الحجز مع الحساب: {email}. جاري تجربة الحساب التالي...', 
 '❌ No tickets available or booking failed with account: {email}. Trying next account...', 
 'Message when booking fails with an account');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_tickets_sold_out', 
 '❌ نفدت التذاكر للحساب {email}. جاري تجربة الحساب التالي...', 
 '❌ Tickets sold out for account {email}. Trying next account...', 
 'Message when tickets are sold out for an account');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_error', 
 'حدث خطأ أثناء الحجز مع {email}: {error}', 
 'An error occurred while booking with {email}: {error}', 
 'Message when an error occurs during booking');

-- Final Results Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_completed', 
 '🏁 اكتملت عملية الحجز!

📍 رابط الحدث: {event_url}
🔗 الرابط المصحح: {fixed_url}
🎫 التذاكر المطلوبة: {tickets_requested}
✅ التذاكر المحجوزة: {tickets_obtained}
💳 نوع الدفع: {payment_type}
👥 الحسابات المستخدمة: {accounts_used}
⚡ وضع المعالجة: متوازي ({max_concurrent} حسابات في وقت واحد)', 
 '🏁 Booking process completed!

📍 Event URL: {event_url}
🔗 Fixed URL: {fixed_url}
🎫 Tickets Requested: {tickets_requested}
✅ Tickets Obtained: {tickets_obtained}
💳 Payment Type: {payment_type}
👥 Accounts Used: {accounts_used}
⚡ Processing Mode: Parallel ({max_concurrent} accounts at once)', 
 'Final completion message with booking summary');

-- Error Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_general_error', 
 '❌ حدث خطأ أثناء معالجة طلبك. يرجى المحاولة مرة أخرى.', 
 '❌ An error occurred while processing your request. Please try again.', 
 'General error message for WeBook operations');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_network_error', 
 '❌ خطأ في الشبكة. يرجى التحقق من اتصالك بالإنترنت والمحاولة مرة أخرى.', 
 '❌ Network error. Please check your internet connection and try again.', 
 'Network error message for WeBook operations');

-- Confirmation Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_confirm_booking', 
 'هل أنت متأكد من أنك تريد حجز {tickets} تذاكر لهذا الحدث؟', 
 'Are you sure you want to book {tickets} tickets for this event?', 
 'Confirmation message before proceeding with booking');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_booking_cancelled', 
 'تم إلغاء عملية الحجز.', 
 'Booking process cancelled.', 
 'Message when user cancels the booking process');

-- Status Update Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_status_update', 
 '📊 تحديث الحالة: {current_step}/{total_steps} - {description}', 
 '📊 Status Update: {current_step}/{total_steps} - {description}', 
 'Status update message during booking process');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_processing_accounts', 
 '⚙️ معالجة الحسابات... ({processed}/{total})', 
 '⚙️ Processing accounts... ({processed}/{total})', 
 'Message showing account processing progress');

-- Success Messages
INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_success_message', 
 '🎉 تم إكمال العملية بنجاح!', 
 '🎉 Operation completed successfully!', 
 'General success message for WeBook operations');

INSERT INTO bot_messages (key, ar_value, en_value, description) VALUES 
('webook_partial_success', 
 '⚠️ تم إكمال العملية جزئياً. {successful}/{total} حسابات نجحت.', 
 '⚠️ Operation completed partially. {successful}/{total} accounts succeeded.', 
 'Message when some accounts succeed but others fail');