Browse Source

Добавил /help #EBT-26

GandonKur 4 years ago
parent
commit
16465a55af
1 changed files with 16 additions and 1 deletions
  1. 16 1
      EthermineBotTelegram/Program.cs

+ 16 - 1
EthermineBotTelegram/Program.cs

@@ -137,7 +137,7 @@ namespace EthermineBotTelegram
                         
                         // send help
                         case "/help":
-                            //await SendHelp();
+                            await SendHelp(e.Message.Chat);
                             break;
 
                         default:
@@ -581,5 +581,20 @@ namespace EthermineBotTelegram
                 }
             }
         }
+        
+        public static async Task SendHelp(Chat e)
+        {
+            await botClient.SendTextMessageAsync(
+                chatId: e,
+                text:   $"This is bot tracks your miner stats and calculates unpaid per worker.\n"
+                        +    $"How to start:\n"
+                        +    $"1) \"/start\" - it will add you to database\n"
+                        +    $"2) \"/setwallet <wallet>\" - it will set wallet for tracking, bot will start to add info about your miner and workers to database\n"
+                        +    $"3) \"/actual\" - it will send you up to date data about your worker\n"
+                        +    $"4) \"/stop\" - it will clear all data about you from database\n"
+                        +    $"Additional commands:\n"
+                        +    $"\"/rate\" - get actual ETH and BTC rate from ethermine\n"
+                        +    $"\"/actual <wallet>\" - get up to date data about any wallet without unpaid per worker\n");
+        }
     }
 }