File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
libraries/nestjs-libraries/src/integrations/social Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class TelegramProvider extends SocialAbstract implements SocialProvider {
2323 isBetweenSteps = false ;
2424 isWeb3 = true ;
2525 scopes = [ ] as string [ ] ;
26- editor = 'normal ' as const ;
26+ editor = 'markdown ' as const ;
2727
2828 async refreshToken ( refresh_token : string ) : Promise < AuthTokenDetails > {
2929 return {
@@ -187,20 +187,20 @@ export class TelegramProvider extends SocialAbstract implements SocialProvider {
187187 ? await telegramBot . sendVideo (
188188 accessToken ,
189189 media . media ,
190- { caption : text } ,
190+ { caption : text , parse_mode : 'Markdown' } ,
191191 media . fileOptions
192192 )
193193 : media . type === 'photo'
194194 ? await telegramBot . sendPhoto (
195195 accessToken ,
196196 media . media ,
197- { caption : text } ,
197+ { caption : text , parse_mode : 'Markdown' } ,
198198 media . fileOptions
199199 )
200200 : await telegramBot . sendDocument (
201201 accessToken ,
202202 media . media ,
203- { caption : text } ,
203+ { caption : text , parse_mode : 'Markdown' } ,
204204 media . fileOptions
205205 ) ;
206206 messageId = response . message_id ;
@@ -213,6 +213,7 @@ export class TelegramProvider extends SocialAbstract implements SocialProvider {
213213 type : m . type === 'document' ? 'document' : m . type , // Documents are not allowed in media groups
214214 media : m . media ,
215215 caption : i === 0 && index === 0 ? text : undefined ,
216+ parse_mode : 'Markdown'
216217 } ) ) ;
217218
218219 const response = await telegramBot . sendMediaGroup (
You can’t perform that action at this time.
0 commit comments