Skip to content

Commit

Permalink
fix cyclic dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
codebam committed May 17, 2024
1 parent 715d10c commit 9a56f7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/main/src/telegram_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { SerializableData, TelegramInlineQueryResultArticle, TelegramInlineQueryResultPhoto } from './types.js';
import SerializableData from './types/SerializableData.js';
import TelegramInlineQueryResultArticle from './types/TelegramInlineQueryResultArticle.js';
import TelegramInlineQueryResultPhoto from './types/TelegramInlineQueryResultPhoto.js';
import TelegramInlineQueryResultVideo from './types/TelegramInlineQueryResultVideo.js';

export default class TelegramApi {
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/telegram_bot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TelegramUpdate } from './types.js';
import TelegramUpdate from './types/TelegramUpdate.js';
import TelegramExecutionContext from './telegram_execution_context.js';
import Webhook from './webhook.js';

Expand Down
5 changes: 4 additions & 1 deletion packages/main/src/telegram_execution_context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import TelegramApi from './telegram_api.js';
import TelegramBot from './telegram_bot.js';
import { SerializableData, TelegramInlineQueryResultArticle, TelegramInlineQueryResultPhoto, TelegramUpdate } from './types.js';
import SerializableData from './types/SerializableData.js';
import TelegramInlineQueryResultArticle from './types/TelegramInlineQueryResultArticle.js';
import TelegramInlineQueryResultPhoto from './types/TelegramInlineQueryResultPhoto.js';
import TelegramUpdate from './types/TelegramUpdate.js';
import TelegramInlineQueryResultVideo from './types/TelegramInlineQueryResultVideo.js';

export default class TelegramExecutionContext {
Expand Down

0 comments on commit 9a56f7b

Please sign in to comment.