QlikTelegram - qlik-bots/QlikBotNet GitHub Wiki

This is the class takes care of conversation between telegram user and this bot server.

QlikTelegramnamespace

Bot.cs

Bot()

It initiates the bot and all of other services.

CheckTheUser(string UserId, Telegram.Bot.Types.User TelegramUser, string UserName = "")

Check if the user has permission to use this bot.

BotOnReceiveError(object sender, ReceiveErrorEventArgs receiveErrorEventArgs)

Error event.

BotOnChosenInlineResultReceived(object sender, ChosenInlineResultEventArgs chosenInlineResultEventArgs)

Inline result event.

BotOnInlineQueryReceived(object sender, InlineQueryEventArgs inlineQueryEventArgs)

Inline query event. For example when you selecte a dimension, measure, kpi with inline buttons.

BotOnMessageReceived(object sender, MessageEventArgs messageEventArgs)

Main function. Takes care of almost all text messages received by the bot.

ProcessConversationResponse(Response Resp, long ChatId, QSUser Usr)

Convert conversation reponse to message and send it to user.

CreateChatGroup(long ChatId, string GroupName)

Create chat group.

AskForNews(long ChatId, string NewsQuery)

News.

BotShowTypingState(long ChatId)

Show typing state.

BotOnCallbackQueryReceived(object sender, CallbackQueryEventArgs callbackQueryEventArgs)

Callback query event.

BotSendChartImage(...)

send chart image.

BotSendTextMessage(...)

send text message

BotSendPhotoMessage(...)

send photo.

BotSendDocMessage(...)

send document.

BotSendVoiceMessage(...)

send voice message.

BotSendVenueMessage(...)

send venue message.

BotSendLogToAdmin(...)

send log.

BotSendUsersToAdmin(...)

send user.

CheckAlerts(...)

GetReportList()

ShowReportList(long ChatId)

ChangeAppLanguage(string LanguageName)

GetDefaultDistanceInKm()