Contribute to Open Source. Search issue labels to find the right project for you!

[question] Enable Telegram webhook using code (instead of cli)

Yoctol/bottender

Hi!

Trying to enable Webhooks for my Tg application. Using cli it’s easy and described in wiki.

Can’t run it in using code. Tried like this:

const { TelegramBot, TelegramHandler } = require('bottender');
const { createServer } = require('bottender/express');

const bot = new TelegramBot({
    accessToken: '******',
});
const handler = new TelegramHandler()
    .onText(/yo/i, async context => {
        const options = {
            parse_mode: 'Markdown',
        };
        await context.sendMessage('*Hi* there!', options);
    })
    .onEvent(async context => {
        await context.sendMessage("Sorry, I don't know what you say.");
    });

bot.onEvent(handler);

const server = createServer(bot, {ngrok: true}); // <--- here is enabled 
server.listen(8339, () => {
    console.log('server is running on 8338 port...');
});

In this case ngrok runs but it doesn’t initialise Webhook to Tg. Is there any ability to execute this ?

Updated 14/05/2018 15:55 2 Comments

[.NET SDK] Telegram client doesn't recognize replies from bot as replies

Microsoft/BotBuilder

Bot Info

  • SDK Platform: .NET
  • SDK Version: 3.14.1.1
  • Active Channels: Telegram
  • Deployment Environment: own server + Azure Bot Service,

Issue Description

Telegram client (Telegram X for Android) still shows the waiting picture on the bot’s button after the bot reply. After a while Telegram also shows a notification. “The bot doesn’t respond. Try again later ”. Nevertheless, the reply from the bot shows correct.

Code Example

var message = messageFromUser.CreateReply() … filling the message var result = await _connector.Conversations.ReplyToActivityAsync(message);

Reproduction Steps

  1. get the message with buttons from bot
  2. push any button
  3. wait for the bot reply

Expected Behavior

The waiting pictogram (small rolling circle) on the button disappears

Actual Results

The waiting pictogram still active. After 30 seconds-1 minute. Telegram shows notification “The bot doesn’t respond. Try again later ”

Updated 04/04/2018 22:01 2 Comments

Send new ticket via Telegram and Trigger notification via Telegram

zammad/zammad

<!– Hi there - thanks for filling an issue. Please ensure the following things before creating an issue - thank you! 🤓

  • Search existing issues and the CHANGELOG.md for your issue - there might be a solution already
  • Make sure to use the latest version of Zammad if possible
  • Add the log/production.log file from your system. Attention: Make sure no confidential data is in it!
  • Please write the issue in english

  • The upper textblock will be removed automatically when you submit your issue * –>

Infos:

  • Used Zammad version: 1.5.x
  • Used Zammad installation source: package
  • Operating system: Debian Jessie
  • Browser + version: Firefox 55.0.2

Expected behavior:

Send new ticket via Telegram and send Trigger notification via Telegram *

Actual behavior:

I can not find an option to send new tickets via Telegram. Also, I can not find an option to send trigger notifications via telegram. *

Steps to reproduce the behavior:

Create new ticket and change Trigger notification *

Updated 17/05/2018 11:30 5 Comments

Fork me on GitHub