core
core copied to clipboard
CLI - Command Line Interface
Similar to what I've done in the Manager, it would be really great to have an "official" CLI to manage and control the bot.
Some features that I think could be very useful (using tgbot as the example command):
tgbot webhook:[set | unset | reset | info] <url>
tgbot handle:getupdates [--loop]
tgbot handle:cron <group>
tgbot send:[message | {whatever}] <chat_id> <text | {whatever}>
tgbot log:[error | debug | update]
tgbot db:cleanup
tgbot db:migrate <rollback>
Of course these are just some examples and this could be extended a lot.
@php-telegram-bot/developers