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); }
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); }
public override void Init() { ActiveMessage = new TelegramTextMessageWithKeyboard(UserId, string.Format(MessageTemplate, Increment)); ActiveMessage.AddCallbackButton("Button", Callback); PostMessage(ActiveMessage); }