core icon indicating copy to clipboard operation
core copied to clipboard

CLI - Command Line Interface

Open noplanman opened this issue 6 years ago • 0 comments

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

noplanman avatar Jun 05 '19 01:06 noplanman