Questions tagged as 'telegram'

2
answers

Switch case in PHP with variable

My question is this, I'm doing a Telegram bot with user help in various cases. I would like to capture a piece of the message that you send me to use it as a variable, that is: switch($mensaje) case '/tiempo Madrid': $ciudad="Madrid";...
asked by 26.07.2018 / 18:10
3
answers

NodeJs gives me this error when starting

I'm new to Nodejs and download this code and I can not start it, I've been working with other projects and they work fine (install the express and the cli, in addition to the node-telegram-bot-api as it says on gitHub) what can I miss? the cod...
asked by 01.06.2017 / 01:55
1
answer

functional code does not run on my telegram bot

The problem is that this code: const Jimp = require('Jimp'); var map = [["⬜","⬜","u","⬜","⬜","⬜"],["⬜","⬜","⬜","⬜","⬜","⬜"], ["⬜","⬜","⬜","⬜","⬜","⬜"],["⬜","⬜","⬜","⬜","⬜","⬜"], ["⬜","⬜","⬜","⬜","⬜","⬜"],["⬜","⬜","⬜","...
asked by 11.04.2018 / 10:10
1
answer

Telegram Bot as a centOS server monitor

I'm trying to mount a bot telegram to manage my centOS server. I follow the example shown in this blog https://blog.angelinux-slack.net/2017/01/28/usar-un-bot-de-telegram-como-monitor-de-servidores-linux/ I indicate to the telegram api w...
asked by 25.03.2018 / 13:36
1
answer

Show SQL Server fields in Telegram

I have the following code in python with connection to SQLServer database made in ubuntu (it is a bot for telegram): import pymssql from telegram.ext import Updater, CommandHandler, MessageHandler, Filters import logging logging.basicConfig(...
asked by 26.07.2017 / 02:14
0
answers

Webhook php for telegram bot does not give me an answer

I want to make a bot of telegram using php , but when sending a message to the bot no I receive an answer from webhook . I have a site in infinityfree , the domain edutrack.ml got it in freenom and generates a certificate s...
asked by 22.11.2018 / 17:06
0
answers

Reply Bot Telegram with Dialogflow answer with Youtube video

I am configuring a telegram bot from Dialogflow and for more I have searched I have not found how to create an intent, for example, "send me a video" and that I sent a Youtube video. I imagine that it is through a Custom Payload but not located...
asked by 25.09.2018 / 22:56
0
answers

Answer Bot Telegram

I want my bot to receive the user's response to a question made by the bot itself and continue with the execution of that function without starting the execution again when receiving a message. The command I send is / vehicle route to call...
asked by 29.08.2018 / 05:27
1
answer

Check if the value exists in the db and, if it does not exist, run update

What I need is to verify if in column pidio of table faucet of the database is the value true or false (the default value is false ). If it is in false , do something; if it is in true , do nothing....
asked by 05.08.2018 / 01:42
0
answers

Telegram.Bot (Get file upload progress)

Hello friends, I am writing to you to see who can help me with the following, I am working with Telegram.Bot api and so far it is very good, the problem starts when I want to upload a file and even though I send it, if the file is very large, I...
asked by 28.07.2018 / 17:57