akdNIKY commited on
Commit
818994d
·
verified ·
1 Parent(s): 1b3dbce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +54 -1
app.py CHANGED
@@ -120,7 +120,60 @@ MESSAGES = {
120
  'bot_not_admin_in_channel': "ربات ادمین کانال '{channel_id}' نیست یا مجوزهای کافی برای بررسی عضویت را ندارد. لطفاً ربات را به عنوان ادمین با مجوز 'بررسی وضعیت اعضا' در کانال اضافه کنید."
121
  },
122
  'en': {
123
- # English messages go here
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  }
125
  }
126
 
 
120
  'bot_not_admin_in_channel': "ربات ادمین کانال '{channel_id}' نیست یا مجوزهای کافی برای بررسی عضویت را ندارد. لطفاً ربات را به عنوان ادمین با مجوز 'بررسی وضعیت اعضا' در کانال اضافه کنید."
121
  },
122
  'en': {
123
+
124
+ 'start_welcome': "Hello! I am an audio and video format conversion bot.\n\nTo start, select a feature from the menu below.",
125
+ 'choose_language': "Choose your preferred language:",
126
+ 'processing_start': "⏳ Starting processing...",
127
+ 'file_received': "⬇️ File received. Processing...",
128
+ 'conversion_done': "⚙️ Conversion complete. Sending...",
129
+ 'mp3_to_voice_reply': "Your Telegram voice (converted from MP3)",
130
+ 'voice_to_mp3_caption': "Your MP3 file (converted from Telegram voice)",
131
+ 'error_mp3_to_voice': "❌ Error converting MP3 to Telegram voice: ",
132
+ 'error_voice_to_mp3': "❌ Error converting Telegram voice to MP3: ",
133
+ 'general_error': "Sorry, something went wrong. Please try again.",
134
+ 'main_menu_prompt': "What would you like to do with your file?",
135
+ 'btn_convert_format': "Change Audio Format 🎵",
136
+ 'btn_cut_audio': "Cut Part of Audio ✂️",
137
+ 'btn_video_conversion': "Convert Circular Video 🎥",
138
+ 'convert_mode_active': "You are now in 'Change Audio Format' mode. Send me your audio file (voice or MP3).",
139
+ 'cut_mode_active_file': "You are in the 'Cut Audio' section.\n\nFirst, send your audio file (MP3 or voice).",
140
+ 'cut_mode_active_range': "Now send the desired time range for cutting in 'MM.SS-MM.SS' format (example: 00.21-00.54).",
141
+ 'invalid_time_format': "Invalid time format. Please use 'MM.SS-MM.SS' format. (example: 00.21-00.54)",
142
+ 'invalid_time_range': "Invalid time range or end time is less than start time. Please enter a valid range.",
143
+ 'audio_cut_success': "✅ Audio cut successfully. Your file is ready.",
144
+ 'no_audio_for_cut': "No audio file found for cutting. Please send the audio file first.",
145
+ 'cut_processing': "✂️ Cutting audio...",
146
+ 'returning_to_main_menu': "Returning to main menu...",
147
+ 'cancel_message': "Operation cancelled. Returned to main menu.",
148
+ 'video_conversion_mode_active': "You are in 'Circular Video Conversion' mode.\n\nSend me a regular video or a circular video message (Video Message).",
149
+ 'file_received_video': "⬇️ Video file received. Processing...",
150
+ 'converting_video_note_to_video': "🔄 Converting circular video to regular video...",
151
+ 'converting_video_to_video_note': "🔄 Converting regular video to circular video...",
152
+ 'conversion_done_video': "✅ Video conversion successful. Sending...",
153
+ 'video_note_to_video_caption': "Your regular video (converted from circular video)",
154
+ 'video_to_video_note_reply': "Your circular video (converted from regular video)",
155
+ 'error_video_conversion': "❌ Error converting video: ",
156
+ 'invalid_file_type_video': "Please send a video file or a video message.",
157
+ 'membership_required': "To continue using the bot and access unlimited features, please join the following channels first:",
158
+ 'btn_join_channel': "Join Channel 🤝",
159
+ 'btn_check_membership': "Check Membership ✅",
160
+ 'membership_success': "✅ Your membership has been verified! You can now use the bot unlimitedly.",
161
+ 'membership_failed': "❌ Sorry, you are not yet a member of all required channels. Please join first and then press 'Check Membership' again.",
162
+ 'not_admin': "You do not have permission to access this section.",
163
+ 'admin_menu_prompt': "Welcome to the link management panel:",
164
+ 'btn_add_channel': "Add Channel Link ➕",
165
+ 'btn_list_channels': "List Channels & Remove 🗑️",
166
+ 'send_channel_link': "Please send the channel link (e.g., @mychannel) or numeric ID:",
167
+ 'channel_added': "✅ Channel '{channel_id}' successfully added.",
168
+ 'channel_already_exists': "❗️ This channel has already been added.",
169
+ 'no_channels_configured': "No channels configured for membership.",
170
+ 'channel_list_prompt': "Current list of channels for mandatory membership:",
171
+ 'btn_remove_channel': "Remove ❌",
172
+ 'channel_removed': "✅ Channel '{channel_id}' successfully removed.",
173
+ 'channel_not_found': "❗️ Channel not found.",
174
+ 'invalid_channel_id': "Invalid channel ID/link. Please send @username or numeric ID (e.g., -1001234567890).",
175
+ 'bot_not_admin_in_channel': "The bot is not an admin in channel '{channel_id}' or does not have sufficient permissions to check membership. Please add the bot as an admin with 'Check members' permission in the channel."
176
+
177
  }
178
  }
179