Great job!!
How can we get telegram Api and chat ID. Pls anyone explain.
Telegram Bot API Token, this provides you the step to create Telegram Bot API token
Get Chat ID, Use this telegram bot to get your Chat ID
Good job iam a telegram bot developer so nice extension
This API solved 50% of what I needed for an APP Iâm doing telecommunication tower inspection, I can send the photos and the PDF of the report generated by the APP, but I canât send an audio file recorded by the technician in the field, the intention would be that he didnât have to type, in the Telegram channel there is a bot that takes all audio messages and converts them into text.
=========================================================
Esta API resolveu 50% do que estava precisando para um APP que estou fazendo de vistoria de torre de telecomunicação, consigo enviar as fotos e o PDF do relatório gerado pelo APP, mas não consigo enviar um arquivo de audio gravado pelo técnico em campo, o intuito seria que ele não tivesse que digitar, no canal do Telegram tem um bot que pega todas mensagens de audio e converte em texto.
Awesome ExtensionâŠ
This changes all the rules of the game
keep in mind that only files smaller than 50 megabytes can be sent through the BOT API
I use telegram bots for everything âŠ
maintenance of Linux Servers, I check the status of the servers every minute and if there are failures the bot alerts me by telegram. likewise the bot receives orders and executes them on the server side âŠ
for example I order the bot to delete the temporary files, and on the server side there is a webhook that does it, and likewise there are countless applications âŠ
hi Iâm trying to use the .getUpdates block. I couldnât find what to add to the âoffsetâ part. app closes when i type 0. Can you help me?
Thanks for your answer. First of all i like the nick you used because it looks like my friendâs name(zeroxparrow). I donât know much about telegram bots.
When I use the command in this way, it gives an error.
and likewise when I put âText_Box3â it gives an error when I leave the text box blank.
When I enter text containing letters into the text box, it gives an error, when I enter numbers or numbers, the application closes. Thank you for the article we sent, but I understood very little neither from the articles there nor from my internet research. All i want to do is show the last message returned in chat in my app
Did you try setting an empty text block? or any number higher than 0.
yes i tried them all. When I leave it blank, it gives an error, the application does not close. The application crashes when entering a value greater than 0. I think the problem is in the extension
I never saw this extension before. Very nice
Can we edit the content of the message we sent earlier?
Can we edit the content of the message we sent to Telegram earlier?
Sample;
âHello Worldâ
editing
âO world! how are youâ
something like this was done but I couldnât understand it.
<?php
if ($_SERVER['HTTPS'] != "on") {
$url = "https://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
header("Location: $url");
exit;
}
$botToken="XXXX...";
$website="https://api.telegram.org/bot".$botToken;
$content = file_get_contents("php://input");
$update = json_decode($content, true);
$chatId = $update["message"]["chat"]["id"];
$message = $update["message"]["text"];
// get message_id
$messageId = $update["message"]["message_id"];
switch($message) {
case("action"):
sendMessage($chatId, "What should I do?");
break;
case("add"):
// add the 2nd parameter
editMessageText($chatId, $messageId, "should I add?");
break;
default:
sendMessage($chatId, "default");
}
function sendMessage($chatId, $message) {
What should we do to make it work on in-chat topics?
we canât get a different chatID. How do we send our messages to topics within the group via bot?
If you want to send in a group, set chatId to the username of the group.
No, I want to send it to the topic within the group, not to the group. If you read the title below, you will understand me better.
group>topic
Check it here, there is a feature to manage topics via bot.
Iâve looked there before and couldnât find what I was looking for. Itâs just talking about forwarding a message to the group. How to send to channels within the group is not mentioned.
This post was flagged by the community and is temporarily hidden.