diff --git a/configs/TelegramCore.cfg b/addons/sourcemod/configs/TelegramCore.cfg similarity index 72% rename from configs/TelegramCore.cfg rename to addons/sourcemod/configs/TelegramCore.cfg index a19d712..f9ec0d4 100644 --- a/configs/TelegramCore.cfg +++ b/addons/sourcemod/configs/TelegramCore.cfg @@ -3,6 +3,6 @@ "Settings" { "token" "" - "chatId" "" + "chatId" "id:" } } \ No newline at end of file diff --git a/addons/sourcemod/plugins/Telegram_Core.smx b/addons/sourcemod/plugins/Telegram_Core.smx new file mode 100644 index 0000000..7ddf3d7 Binary files /dev/null and b/addons/sourcemod/plugins/Telegram_Core.smx differ diff --git a/scripting/Telegram_Core.sp b/addons/sourcemod/scripting/Telegram_Core.sp similarity index 97% rename from scripting/Telegram_Core.sp rename to addons/sourcemod/scripting/Telegram_Core.sp index 8136167..bb4f068 100644 --- a/scripting/Telegram_Core.sp +++ b/addons/sourcemod/scripting/Telegram_Core.sp @@ -6,7 +6,7 @@ public Plugin myinfo = author = "Alexbu444", name = "[Telegram] Core (LiteServers LLP)", description = "Library for sending messages via bot to Telegram", - version = "1.1.1", + version = "2.0.0", url = "https://t.me/alexmo812" }; @@ -30,6 +30,7 @@ public void OnPluginStart() { kv.GetString("token", szApiKey, sizeof(szApiKey)); kv.GetString("chatId", szChatId, sizeof(szChatId)); + strcopy(szChatId, sizeof(szChatId), szChatId[3]); } FormatEx(szApiUrl, sizeof(szApiUrl), "https://api.telegram.org/bot%s", szApiKey); diff --git a/scripting/include/telegram.inc b/addons/sourcemod/scripting/include/telegram.inc similarity index 100% rename from scripting/include/telegram.inc rename to addons/sourcemod/scripting/include/telegram.inc diff --git a/plugins/Telegram_Core.smx b/plugins/Telegram_Core.smx deleted file mode 100644 index cab9c9e..0000000 Binary files a/plugins/Telegram_Core.smx and /dev/null differ