Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azhinu/telegram-question-cards-bot
Telegram bot that give you a question from a deck
https://github.com/azhinu/telegram-question-cards-bot
Last synced: 4 days ago
JSON representation
Telegram bot that give you a question from a deck
- Host: GitHub
- URL: https://github.com/azhinu/telegram-question-cards-bot
- Owner: azhinu
- License: wtfpl
- Created: 2024-08-15T20:59:43.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-08-24T16:19:39.000Z (3 months ago)
- Last Synced: 2024-09-08T14:24:26.263Z (2 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Telegram question cards bot
This bot will send you a question card from a list of questions that you can load from a YAML file.
## Usage
Bot can run in two modes: polling and webhook. Polling is the default mode and is used when no webhook URL is provided. Default webhook port is 1443.
### Cli flags:
-h | --help | Env vars | Show context-sensitive help.
----------|-------------------|---------------------|----------------------------------
| --version | | Print version information and quit
-d | --debug | QC_BOT_DEBUG | Enable debug logging
-t | --token=STRING | QC_BOT_TOKEN | Telegram bot token. Required
-u | --url=https://example.com/bot-secret-url | QC_BOT_URL | Webhook URL. Optional
-p | --port=1443 | QC_BOT_PORT | Weebhook port## Question Decks
You can load a list of questions from a YAML file. The file should be structured as follows:
```yaml
deck1:
- "q1"
- "q2"
- "q3"
- "q4"
deck2:
- "q1"
- "q2"
```