Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bot.error.event] TypeError: bot.send_message is not a function #240

Open
nickz1p opened this issue Oct 6, 2023 · 0 comments
Open

[bot.error.event] TypeError: bot.send_message is not a function #240

nickz1p opened this issue Oct 6, 2023 · 0 comments

Comments

@nickz1p
Copy link

nickz1p commented Oct 6, 2023

import TeleBot from "telebot"

const bot = new TeleBot(process.env.TELEGRAM_BOT_TOKEN)
const destinationChatId = XXXXXXXXXXXXXXXXXXXXXX;

bot.on("*", msg => bot.send_message(destinationChatId, msg))

export default bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant