diff --git a/.vscode/settings.json b/.vscode/settings.json index c7cf918..a5500f0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "clangd.arguments": [ - "--compile-commands-dir=buildDir/" + "--compile-commands-dir=build/" ], "clangd.path": "clangd", } \ No newline at end of file diff --git a/README.md b/README.md index e16f062..2c0c921 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,24 @@ # tgbot -A minimal C Telegram API Framework 🚀 +A minimal C Telegram API Framework -## 📋 Requirements +## Requirements - libcurl - json-c -## 🎯 Goal -This project is not designed to cover the entire Telegram Bot API. Instead, it focuses on a subset of the API for simplicity. +> Note: This project is purely educational. It does not aim to cover the entire Telegram Bot API, but only a selected subset of methods. -### Currently Supported Features -#### 📑 Types +### Supported Features +#### Types - **InlineKeyboardMarkup** - Note: Standard `KeyboardMarkup` is intentionally not supported. -#### ⚙️ Methods +#### Methods - `getMe` - `sendMessage` - `editMessageText` -## 🛠️ Roadmap -Future planned methods to expand functionality: -- 📸 `sendPhoto` -- 🎵 `sendAudio` -- 📂 `sendDocument` -- 🎥 `sendVideo` +## Roadmap +- `sendPhoto` +- `sendAudio` +- `sendDocument` +- `sendVideo` diff --git a/src/main.c b/src/main.c index 9d3bf76..1aaabbf 100644 --- a/src/main.c +++ b/src/main.c @@ -85,7 +85,7 @@ int main(void) { tgbot_rc ret; char token[256]; - + FILE *fp = fopen(".token", "r"); if (fp == NULL) { fprintf(stderr, "No .token file found!\n");