Skip to content

Commit

Permalink
fix tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RB-Lab committed Nov 16, 2021
1 parent 9174c99 commit 2df26d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/bot/answerCallbackQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { Route } from '../route';
* @see https://core.telegram.org/bots/api#answercallbackquery
*/
export const answerCallbackQuery: Route = (app) => {
// @ts-expect-error TS6133: 'unusedTestBot' is declared but its value is never read.
handle(app, '/bot:token/answerCallbackQuery', (req, res) => {
res.sendResult({
ok: true,
Expand Down
1 change: 1 addition & 0 deletions src/test/generic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ describe('Telegram Server', () => {
const { server, client } = await getServerAndClient(token);
const botOptions = {polling: true, baseApiUrl: server.config.apiURL};
const telegramBot = new TelegramBotEx(token, botOptions);
// @ts-expect-error TS6133: 'unusedTestBot' is declared but its value is never read.
const unusedTestBot = new TestBot(telegramBot);
const client2 = server.getClient(token, {chatId: 2, firstName: 'Second User'});
await client.sendMessage(client.makeMessage('/start'));
Expand Down

0 comments on commit 2df26d2

Please sign in to comment.