From 754fbeaba891c7433f9fc9b70b6077fd4b68b643 Mon Sep 17 00:00:00 2001 From: Maxim Sysoev Date: Wed, 11 Oct 2017 22:46:39 +0300 Subject: [PATCH] WIP --- Install/TelegaPiBot.dproj | 22 +++++++++++----------- InstallAndDemo.groupproj | 8 ++++---- Source/TelegAPI.Base.pas | 5 ++++- Source/TelegAPI.Bot.pas | 10 ---------- 4 files changed, 19 insertions(+), 26 deletions(-) diff --git a/Install/TelegaPiBot.dproj b/Install/TelegaPiBot.dproj index 420f06f..297a5a3 100644 --- a/Install/TelegaPiBot.dproj +++ b/Install/TelegaPiBot.dproj @@ -172,16 +172,7 @@ $(PreBuildEvent)]]> true - - - 0 - .dll;.bpl - - - 1 - .dylib - - + Contents\Resources @@ -520,7 +511,16 @@ $(PreBuildEvent)]]> 1 - + + + 0 + .dll;.bpl + + + 1 + .dylib + + diff --git a/InstallAndDemo.groupproj b/InstallAndDemo.groupproj index 519b35d..4276638 100644 --- a/InstallAndDemo.groupproj +++ b/InstallAndDemo.groupproj @@ -13,7 +13,7 @@ Install\TelegaPiBot.dproj - Install\TelegaPiBot.dproj + @@ -50,13 +50,13 @@ - + - + - + diff --git a/Source/TelegAPI.Base.pas b/Source/TelegAPI.Base.pas index 200ee06..e3127b5 100644 --- a/Source/TelegAPI.Base.pas +++ b/Source/TelegAPI.Base.pas @@ -1,4 +1,4 @@ -unit TelegAPI.Base; +unit TelegAPI.Base; interface @@ -14,6 +14,9 @@ TtgAbstractComponent = class(TComponent) constructor Create(AOwner: TComponent); override; published property Autor: string read FAutor; + /// + /// Поддерживаемая версия платформы BotAPI + /// property Version: string read FVersion; end; diff --git a/Source/TelegAPI.Bot.pas b/Source/TelegAPI.Bot.pas index 7c6bc24..2391372 100644 --- a/Source/TelegAPI.Bot.pas +++ b/Source/TelegAPI.Bot.pas @@ -43,7 +43,6 @@ TTelegramBot = class(TtgAbstractComponent) FOnReceiveGeneralError: TtgOnReceiveGeneralError; FOnRawData: TtgOnReceiveRawData; FParamLoader: TtgParamLoader; - function GetVersionAPI: string; protected /// /// Мастер-функция для запросов на сервак @@ -1727,10 +1726,6 @@ TTelegramBot = class(TtgAbstractComponent) /// 283107813:AAG4hEElAvIogTSHNHXI6rZtE46A7XQvIH /// property Token: string read FToken write FToken; - /// - /// Поддерживаемая версия платформы BotAPI - /// - property VersionAPI: string read GetVersionAPI; {$ENDREGION} {$REGION 'События|Events'} /// @@ -1782,11 +1777,6 @@ destructor TTelegramBot.Destroy; inherited; end; -function TTelegramBot.GetVersionAPI: string; -begin - Result := '3.4.0'; -end; - function TTelegramBot.RequestAPI(const Method: string; Parameters: TDictionary): T; var LTextResponse: string;