mirror of
https://github.com/salexdv/Telemonitor1C.git
synced 2025-02-21 19:06:45 +02:00
add commands /help and /settings
This commit is contained in:
parent
ec051cb2e5
commit
a8410857f4
@ -305,7 +305,7 @@ namespace Telemonitor
|
||||
string param = extractParamForCommand(text, out text);
|
||||
text = text.ToLower();
|
||||
|
||||
if (text == "/start") {
|
||||
if (text == "/start" || text == "/help" || text == "/settings") {
|
||||
// Запрошен список команд
|
||||
SendMessage(message.chat.id, tmSettings.GetCommands());
|
||||
}
|
||||
|
@ -12,9 +12,25 @@
|
||||
<TargetFrameworkProfile />
|
||||
<ApplicationIcon>pic\Telemonitor_logo.ico</ApplicationIcon>
|
||||
<NoWin32Manifest>False</NoWin32Manifest>
|
||||
<SignAssembly>False</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile><Create...></AssemblyOriginatorKeyFile>
|
||||
<DelaySign>False</DelaySign>
|
||||
<AssemblyOriginatorKeyMode>File</AssemblyOriginatorKeyMode>
|
||||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
|
||||
<NoStdLib>False</NoStdLib>
|
||||
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
|
||||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<RunCodeAnalysis>False</RunCodeAnalysis>
|
||||
<SourceAnalysisOverrideSettingsFile>C:\Documents and Settings\Alex\Application Data\ICSharpCode/SharpDevelop4\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<BaseAddress>4194304</BaseAddress>
|
||||
<RegisterForComInterop>False</RegisterForComInterop>
|
||||
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
|
||||
<FileAlignment>4096</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
@ -31,6 +47,8 @@
|
||||
<Optimize>True</Optimize>
|
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
|
||||
<StartAction>Project</StartAction>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
|
Loading…
x
Reference in New Issue
Block a user