@@ -124,17 +124,9 @@ Follow these simple steps to set things up:
1241244οΈβ£ β Add your <b>channel/group ID</b>, then save
1251255οΈβ£ β
<b>Setup complete!</b>
1261266οΈβ£ π Now you can <b>search and post</b> β test it out and see the bot in action!
127-
128- π Use the <code>/help</code> command to view all features and commands.
129127</blockquote>
130128
131- <b><i>Example Post Preview:</i></b>
132- <pre><blockquote>
133- <b>π JOIN NOW! π </b><a href="https://t.me/flixora_site"> π¨οΈFlixora_site π¨οΈ</a>
134- <i>π’ ALL NEW SERIES & MOVIES π </i>
135- <tg-spoiler>πVisit π <a href="https://toxybox99.eu.org"> FLIXORA π</a></tg-spoiler>
136- </blockquote></pre>
137-
129+ π Use the <code>/help</code> command to view all features and commands.
138130π <b>Happy posting!</b>
139131 ` . trim ( ) ;
140132
@@ -161,32 +153,53 @@ Follow these simple steps to set things up:
161153}
162154
163155async function handleHelpCommand ( BOT_TOKEN , chatId ) {
164- const message = `π€ <b>Bot Help Center</b>\n\nHere are the available commands:\n\n` +
165- `β’ /start - Welcome IMDB-TG-POST\n` +
166- `β’ /help - Show this help message\n\n` +
167- `<b>How to use:</b>\n` +
168- `1. Add me to your channel as admin\n` +
169- `2. Go to site & explore\n` +
170- `3. Add your channel ID form the top setting botton\n\n` +
171- `4. save and use your imdb and link share to Telegram channel:` ;
172-
156+ const message = `
157+ π€ <b>Bot Help Center</b>
158+
159+ π <b>Available Commands:</b>
160+ β’ /start - Welcome message and setup guide
161+ β’ /help - Show this help message
162+ β’ /setup - Configure your channel settings
163+ β’ /post - Create a new content post
164+ β’ /search - Find movies/series to share
165+
166+ π <b>How to Use:</b>
167+ 1. <b>Add me to your channel</b> as admin with post permissions
168+ 2. <b>Go to our website</b> and explore the features
169+ 3. Tap the <b>settings button (βοΈ)</b> to configure
170+ 4. <b>Add your channel ID</b> and save your configuration
171+ 5. Use <b>/search</b> to find content and post directly to your channel
172+
173+ π‘<b><i>Example Post Preview:</i></b>
174+
175+ <pre><blockquote>
176+ <b>π JOIN NOW! π </b><a href="https://t.me/flixora_site"> π¨οΈFlixora_site π¨οΈ</a>
177+ <i>π’ ALL NEW SERIES & MOVIES π </i>
178+ <tg-spoiler>πVisit π <a href="https://toxybox99.eu.org"> FLIXORA π</a></tg-spoiler>
179+ </blockquote></pre>
180+ ` . trim ( ) ;
181+
173182 const buttons = [
174183 [
175- { text : "π Owner" ,
176- url : "https://t.me/SLtharindu1" } ,
177- { text : "π₯ Tutorial" ,
178- url : "https://example.com/tutorial" }
184+ { text : "π€ Owner" , url : "https://t.me/SLtharindu1" } ,
185+ { text : "π₯ Tutorial" , url : "https://example.com/tutorial" }
179186 ] ,
180187 [
181- { text : "β Support" ,
182- url : "https://t.me/SLtharindu1" } ,
183- { text : "π Report Issue" ,
184- url : "https://t.me/SLtharindu1" }
188+ { text : "π Support" , url : "https://t.me/SLtharindu1" } ,
189+ { text : "π Report Issue" , url : "https://t.me/SLtharindu1" }
190+ ] ,
191+ [
192+ { text : "π Visit Website" , url : "https://imdb-tg-post-font.pages.dev" }
185193 ]
186194 ] ;
187195
188- await sendTextMessage ( BOT_TOKEN , chatId , message , buttons ) ;
189- return new Response ( 'OK' ) ;
196+ try {
197+ await sendTextMessage ( BOT_TOKEN , chatId , message , buttons ) ;
198+ return new Response ( 'OK' , { status : 200 } ) ;
199+ } catch ( error ) {
200+ console . error ( `Failed to send help message to ${ chatId } :` , error ) ;
201+ return new Response ( 'Internal Server Error' , { status : 500 } ) ;
202+ }
190203}
191204
192205async function sendToTelegram ( payload , env ) {
0 commit comments