Skip to content
Advertisement

Tag: telegram-bot

Telegram Bot is not a constructor • TypeScript

Why I have This error: TypeError: node_telegram_bot_api_1.default is not a constructor This is My Code in TypeScript: And This is My Output Code after Compile: Answer It seems that the import is incorrectly done. The documentation of node-telegram-bot-api says that the import needs to be done as follows: This means that the whole module is being imported, which translates to

Advertisement