File size: 10,346 Bytes
ca368c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
-- 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'),
('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'),
('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'),
('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'),
('webook_logging_in', 
 '🔐 تسجيل الدخول بالحساب: {email}', 
 '🔐 Logging in with account: {email}', 
 'Message when logging in with an account'),
('webook_login_failed', 
 '❌ فشل تسجيل الدخول بالحساب: {email}. جاري تجربة الحساب التالي...', 
 '❌ Login failed for account: {email}. Trying next account...', 
 'Message when login fails for an account'),
('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'),
('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'),
('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'),
('webook_tickets_sold_out', 
 '❌ نفدت التذاكر للحساب {email}. جاري تجربة الحساب التالي...', 
 '❌ Tickets sold out for account {email}. Trying next account...', 
 'Message when tickets are sold out for an account'),
('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 booking completion message'),
('webook_payment_buttons_sent', 
 '

💳 تم إرسال أزرار الدفع لكل حجز ناجح أعلاه.', 
 '

💳 Payment buttons have been sent for each successful booking above.', 
 'Message about payment buttons being sent'),
('webook_manual_payment_required', 
 '

⚠️ ستحتاج إلى إكمال الدفع يدوياً.', 
 '

⚠️ You will need to complete payment manually.', 
 'Message about manual payment requirement');