Exemple #1
0
        public static void Send(string apikey, Strings strings, Pointer pointer)
        {
            ContentParts content = prepare(strings, pointer);

            Api.SendMessage(apikey, pointer.ChatId, content.Text, replyMarkup: content.InlineKeyboard);
        }
 public void Add(Pointer pointer)
 {
     dBHandler.AddToQueue(pointer);
 }
Exemple #3
0
        public static void Refresh(string apikey, Strings strings, Pointer pointer, long chatId, int messageId)
        {
            ContentParts content = prepare(strings, pointer);

            Api.EditMessageText(apikey, content.Text, content.InlineKeyboard, chatId, messageId);
        }
        public void Add(int chatId, string languageCode)
        {
            Pointer pointer = new Pointer(chatId, languageCode);

            dBHandler.AddToQueue(pointer);
        }