Questions tagged [telegram-api]

The API for the Telegram messaging service. More information on the API and the TDLib library (for the AP available for multiple programming languages), can be found at .

237 questions
2
votes
2 answers

Telegram bot can't send direct messages

I am creating a Telegram bot using pytelegrambotapi. But when I test the code, my Telegram Bot always replies with quoting my input like this, I don't want it to quote my input message but send the message directly. Also how can I get replies by…
2
votes
0 answers

Why telegram bot sends the file twice?

I am sending a file via telegram bot api, I am sure that my code works once, but two files always come! I cannot understand what is the reason, here is my code: $url =…
user16176768
2
votes
0 answers

Pyrogram does not work inside the Pytelegrambotapi Handler

There is a handler for processing messages for the telegram bot. Inside under certain conditions, the Pyrogram method should operate # coding: utf8 import telebot from pyrogram import * import time bot =…
2
votes
2 answers

asyncio not working on Google Cloud Functions

I have this function which works fine locally on my machine with python 3.8, but it throws runtime error on Google Cloud Functions. def telegram_test(request): request_json = request.get_json() import datetime import pandas as pd …
2
votes
1 answer

Can Telegram Bot ask user to take picture from camera?

I want the bot to send an inline button of "sendPicture" and after clicking it the user can able to click picture from the camera and send it. In this process users not able to send the picture from their gallery. Is telethon support it or is there…
Swarnim Kumar
  • 335
  • 5
  • 21
2
votes
2 answers

Is there an option to view conversations\messages sent by my telegram bot

I have just created a bot on telegram. The purpose is to create private conversations with users (each user separately) With my facebook bot I can go into the Page "Inbox" and watch all conversations. Is there such an option on telegram ? This helps…
Yinon Shiryan
  • 101
  • 1
  • 7
2
votes
0 answers

Telegram bot link with geo:uri

Did someone know, if i can use geo:uri scheme while sending message by telegram bot with HTML parse mode? Something like here seems didn't work. Thanks in advance!
Hynex
  • 41
  • 2
2
votes
1 answer

Forbidden: Bot was blocked by the user - laravel irazasyed/telegram-bot-sdk

Recently I get a lot of this exception: [2020-07-21 00:00:51] local.ERROR: Forbidden: bot was blocked by the user {"exception":"[object] (Telegram\\Bot\\Exceptions\\TelegramResponseException(code: 403): Forbidden: bot was blocked by the user at…
mr javad
  • 163
  • 2
  • 13
2
votes
2 answers

how forward link from a inline button to another chat in pyrogram

I use a user bot in pyrogram to save links from a bot to a personal channel. I use this code: def forwardlik(mensaje) if "Link!" in mensaje.text: mensaje.forward(ids["channel"]) But now the bot it's sending the link with a button…
1
vote
0 answers

Working with a bot web app from the client side using Telethon

Please help me understand how to work with a web app from the client side (user, not a bot). There is a bot that uses a web app. Web app opens after pressing the inline button. The question is how to use telethon to interact with this web app (get a…
Ivan
  • 11
  • 1
1
vote
0 answers

Get a message from the Web App Telegram in the chatbot

Please help, there is a web application from Telegram Web App in a chatbot, I click the MainButton to send a message using the WebApp.SendData() method, but I don't know how to process this data correctly in my backend \`package main import…
sandji
  • 11
  • 1
1
vote
0 answers

Telegram bot return "403 Forbidden: bot can't initiate conversation with a user" with chat_join_request when send message

This is example of my code if ($update->isType('chat_join_request')) { $messageData = ['chat_id' =>$update->chatJoinRequest->from->id, 'text' => $post->post, …
1
vote
0 answers

Telegram api : How can I distinguish album or grouped photos? (in python)

I'm downloading messages from a channel/group. Problem I'm facing is album photos, each photo in the group or album has its own unique photoID and messageID. I couldn't find any way to know if they are in one album or not. Messages look like this I…
1
vote
0 answers

telethon :A wait of 16480 seconds is required (caused by ResolveUsernameRequest)

i'm trying to use telethon to send messages to telegram groups. after some times runing, it reruens: A wait of 16480 seconds is required (caused by ResolveUsernameRequest). the code is: async def main(): print(time.strftime('%Y-%m-%d %H:%M:%S',…
wang
  • 11
  • 1
1
vote
1 answer

Telegram Bot API getUpdates() does not deliver updates after user have not interacted with the bot for a few days

As a telegram bot api developer, I noticed a weird behaviour of the getUpdates() api method: If the user have not interacted with the bot for a few days, then the next time it sends a message to the bot, the message does not get delivered via the…
Meglio
  • 1,646
  • 2
  • 17
  • 33
1 2
3
15 16