mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 00:49:42 +08:00
19 lines
474 B
C++
19 lines
474 B
C++
# include <biu.hpp>
|
|
|
|
namespace missgram
|
|
{
|
|
void db_write(std::string misskey_note, std::int32_t telegram_message_id);
|
|
std::optional<std::int32_t> db_read(std::string misskey_note);
|
|
|
|
std::optional<std::int32_t> tg_send(std::string text, std::optional<std::int32_t> replyId = {});
|
|
|
|
struct Config
|
|
{
|
|
std::string Secret;
|
|
std::string TelegramBotToken;
|
|
std::int64_t TelegramChatId;
|
|
std::int16_t ServerPort;
|
|
std::string dbPassword;
|
|
} inline config;
|
|
}
|