@@ -219,46 +219,38 @@ await _botClient.SendMessage(_chatId,
219219
220220 private async Task HandleHelpCommand ( CancellationToken cancellationToken )
221221 {
222- var helpText = """
223- 📚 **Gmail Telegram Bot - Help**
224-
225- **Available Commands:**
226- /start - Connect your Gmail account via OAuth
227- /status - Check your Gmail connection status
228- /emails [count] - Fetch recent emails (default: 5, max: 20)
229- /filter - Toggle between all emails or unread only
230- /disconnect - Revoke access and delete credentials
231- /test_sync <message_id> - Test sync status for specific message
232- /cleanup_sync - Clean up orphaned database entries
233- /help - Show this help message
234-
235- **How it works:**
236- 1️⃣ Use /start to connect your Gmail account
237- 2️⃣ Authorize the bot in your browser
238- 3️⃣ New emails will be forwarded here automatically
239- 4️⃣ Use action buttons on each email to manage them
240- 5️⃣ Emails deleted in Gmail will auto-sync to Telegram
241-
242- **Email Actions:**
243- 🗑️ Delete - Move email to trash
244- 📦 Archive - Remove from inbox (keep in All Mail)
245- ⭐ Star - Add star to email
246- ➡️ Forward - Forward email to another address
247-
248- **Security:**
249- 🔒 Your credentials are stored securely
250- 🔑 OAuth tokens are encrypted in local database
251- 🚫 No passwords are stored
252- ⏰ Tokens auto-refresh as needed
253- 🛡️ You can revoke access anytime
254-
255- **Email Synchronization:**
256- 🔄 Auto-sync when emails are deleted in Gmail
257- 🗑️ Telegram messages will be removed automatically
258- ⚡ Real-time synchronization during polling
259-
260- **Need help?** Check the documentation or report issues on GitHub.
261- """ ;
222+ var helpText = "📚 *Gmail Telegram Bot - Help*\n \n " +
223+ "*Available Commands:*\n " +
224+ "/start - Connect your Gmail account via OAuth\n " +
225+ "/status - Check your Gmail connection status\n " +
226+ "/emails \\ [count\\ ] - Fetch recent emails (default: 5, max: 20)\n " +
227+ "/filter - Toggle between all emails or unread only\n " +
228+ "/disconnect - Revoke access and delete credentials\n " +
229+ "/test\\ _sync <message\\ _id> - Test sync status for specific message\n " +
230+ "/cleanup\\ _sync - Clean up orphaned database entries\n " +
231+ "/help - Show this help message\n \n " +
232+ "*How it works:*\n " +
233+ "1️⃣ Use /start to connect your Gmail account\n " +
234+ "2️⃣ Authorize the bot in your browser\n " +
235+ "3️⃣ New emails will be forwarded here automatically\n " +
236+ "4️⃣ Use action buttons on each email to manage them\n " +
237+ "5️⃣ Emails deleted in Gmail will auto-sync to Telegram\n \n " +
238+ "*Email Actions:*\n " +
239+ "🗑️ Delete - Move email to trash\n " +
240+ "📦 Archive - Remove from inbox (keep in All Mail)\n " +
241+ "⭐ Star - Add star to email\n " +
242+ "➡️ Forward - Forward email to another address\n \n " +
243+ "*Security:*\n " +
244+ "🔒 Your credentials are stored securely\n " +
245+ "🔑 OAuth tokens are encrypted in local database\n " +
246+ "🚫 No passwords are stored\n " +
247+ "⏰ Tokens auto-refresh as needed\n " +
248+ "🛡️ You can revoke access anytime\n \n " +
249+ "*Email Synchronization:*\n " +
250+ "🔄 Auto-sync when emails are deleted in Gmail\n " +
251+ "🗑️ Telegram messages will be removed automatically\n " +
252+ "⚡ Real-time synchronization during polling\n \n " +
253+ "*Need help?* Check the documentation or report issues on GitHub." ;
262254
263255 await _botClient . SendMessage ( _chatId ,
264256 helpText ,
0 commit comments