Skip to content

Commit

Permalink
feat(botfather): set bot commands via api
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Sep 3, 2020
1 parent 80c2787 commit e3cfb6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions botfather-settings/commands.txt

This file was deleted.

6 changes: 6 additions & 0 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ bot.catch((error: any) => {
})

async function startup() {
await bot.telegram.setMyCommands([
{command: 'start', description: 'öffne das Menü'},
{command: 'mensa', description: 'zeige das heutige Mensaessen deiner Mensa'},
{command: 'settings', description: 'setze Einstellungen des Bots'}
])

setInterval(checkStISysChangeAndNotify, 15 * 60 * 1000)
await checkStISysChangeAndNotify()

Expand Down

0 comments on commit e3cfb6b

Please sign in to comment.