コード例 #1
0
        public AdminBotForm()
        {
            InitializeComponent();

            botClient = new TelegramBotClient(token);
            botLinq   = new BotLinq();
            question  = new Question(botLinq);

            botClient.OnMessage            += BotClient_OnMessageReceived;
            botClient.OnMessageEdited      += BotClient_OnMessageReceived;
            botClient.OnCallbackQuery      += BotOnCallbackQueryReceived;
            botClient.OnInlineQuery        += BotOnInlineQueryReceived;
            botClient.OnInlineResultChosen += BotOnChosenInlineResultReceived;
            botClient.OnReceiveError       += BotOnReceiveError;

            botClient.StartReceiving(Array.Empty <UpdateType>());
        }
コード例 #2
0
ファイル: Question.cs プロジェクト: UlyanaB/Grinatom-bot
 internal Question(BotLinq botLinq)
 {
     BotLnq = botLinq;
 }