Skip to content

Commit af5e235

Browse files
committed
fix linting issues
1 parent c1b6f50 commit af5e235

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/main/src/telegram_bot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class TelegramBot {
7777
}
7878

7979
// Then check if it's a command starting with /
80-
if (args[0] && args[0].startsWith('/')) {
80+
if (args[0].startsWith('/')) {
8181
const command = args[0].substring(1, args[0].lastIndexOf('@') > -1 ? args[0].lastIndexOf('@') : args[0].length);
8282
return command in this.commands ? command : this.defaultCommand;
8383
}

packages/main/src/types/TelegramInlineQueryResultArticle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class TelegramInlineQueryResultArticle extends TelegramInlineQuer
99
super('article');
1010
this.title = data.title ?? '';
1111
this.input_message_content = {
12-
message_text: data.content.toString(),
12+
message_text: data.content,
1313
parse_mode: data.parse_mode ?? '',
1414
};
1515
this.thumb_url = data.thumb_url ?? '';

0 commit comments

Comments
 (0)