public override void Init()
 {
     Type();
     ActiveMessage = new TelegramTextMessageWithKeyboard(UserId, Message, MessageParseMode, DisableWebPreview);
     foreach (var pair in ButtonList)
     {
         ActiveMessage.AddCallbackButton(GetUncheckedString(pair.Key), pair.Value);
     }
     ActiveMessage.AddCallbackButton(MainButton, MainButtonCommand, true);
     PostMessage(ActiveMessage);
 }
예제 #2
0
 public override void Init()
 {
     Type();
     ActiveMessage = new TelegramTextMessageWithKeyboard(UserId, Message, MessageParseMode, DisableWebPreview);
     foreach (var pair in ButtonList)
     {
         ActiveMessage.AddCallbackButton(pair.Key, pair.Value);
     }
     PostMessage(ActiveMessage);
 }
예제 #3
0
 public override void Init()
 {
     ActiveMessage = new TelegramTextMessageWithKeyboard(UserId, string.Format(MessageTemplate, Increment));
     ActiveMessage.AddCallbackButton("Button", Callback);
     PostMessage(ActiveMessage);
 }