Files
nixos/packages/missgram/include/missgram.hpp
2025-12-28 15:40:25 +08:00

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;
}