wrxck / telegram-bot-lua

A simple yet extensive Lua library for the Telegram bot API.
GNU General Public License v3.0
178 stars 34 forks source link

Let send bot a message spontaneously? #22

Open chrislo1976 opened 2 years ago

chrislo1976 commented 2 years ago

Hi!

Is it currently possible to, for example, let the bot send a message spontaneously? Or does/can the bot only react on user actions (=> messages)?

I would like to achieve both. That means, the bot should react on Messages, but also should, for example, send Messages "by himself". The latter could maybe caused by a cyclic check, and if the check has a specific result, a warning is being sent...

Thanks!

NotMafia1010 commented 2 years ago

I don't think it's possible, not from the maker of this library but from telegram it self. Telegram did not provide such method yet. you can check the available methods on telegram bot API, HERE.