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
1
vote
1 answer

Post Telegram message with multiple external photos using WTelegramClient

Post telegram message with single external photo: var im = new InputMediaPhotoExternal(); im.url = a.Photo; await client.SendMessageAsync(target, null, im); Is it possible to post message with multiple external photos using WTelegramClient?
AsValeO
  • 2,859
  • 3
  • 27
  • 64
1
vote
1 answer

Forward message using SendMessageAsync

I'm not able to use the SendMessageAsync method to forward a message. Is there any way to do it?
Gabriel
  • 17
  • 2
1
vote
0 answers

how can I find the Telegram user msg not bot (initialized by user) in flutter?

I want all the messages (send/receive) from the user (Not Bot) to get some specific groups massages in my flutter app. Note: I have a user name. Can it be possible Please guide me about it? I can get messages from the bot and send messages from the…
fun
  • 107
  • 6
1
vote
1 answer

sending the verification code to the SMS and not to the application

is it possible to define how the verification code will be sent when calling the LoginUserIfNeeded method? I need to send it via SMS and not to the application.
1
vote
0 answers

Telethon client.connect() works locally but not with docker container

I'm trying to deploy a python telethon web application (with quart) and when i test locally, telethon can connect to Telegram account without any problem but when i test in a docker container, the connection fails. Here are the logs: (and it get…
Alex
  • 207
  • 2
  • 3
  • 11
1
vote
0 answers

Bot with TelegramApi javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

Hi I'm building a telegram bot that works, but whenever I try it on my laptop company it throws me this error: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find…
1
vote
1 answer

Node js pass parameter to function

I have this code : const { Logger } = require ("telegram/extensions"); const { TelegramClient } = require ("telegram"); const { StringSession } = require ("telegram/sessions"); const { NewMessage } = require ("telegram/events"); const {…
user2178964
  • 124
  • 6
  • 16
  • 40
1
vote
1 answer

Fetching all participants of a Telegram channel

Using the Madelineproto PHP library how can one fetch the list of all participants. Here is a code snippet that fetches the list of recent participants. $participantsInfo = $telegramClient->channels->getParticipants([ 'channel' =>…
qwertynik
  • 118
  • 2
  • 10
1
vote
1 answer

How to add contacts to telegram using telegram API?

I have been trying to use telethon to: Scrape and gather the members and their ID from my group. Add those members as contacts in telegram. (adding contacts without the phone number) So far, I have been able to create the CSV file of the members…
Yogi
  • 11
  • 2
1
vote
1 answer

Telegram Python Bot Inline Menu and Dictionary

Click Here to see the flowchart I need some help with my Telegram bot. I am trying to create a bot that will allow me to modify a selected set of dictionary values and display the dictionary key and values in a certain way at the end of it. As shown…
1
vote
0 answers

Handling users message input in row with callback query in telegram bot on pure php

I faced the problem with handling of user message inputs in telegram bot. I'm writing telegram bot on php without any libraries. Bot receives information from telegram via webhook and two switch-case are handling messages and callback_query. Short…
Akim
  • 41
  • 5
1
vote
0 answers

unable to send high resolution photo via send_photo method of Telgram bot API

Using telegram bot api in python, I am sending photo using a file. First I get the photo from a url. Save the photo to disk. (Full Resolution) Read the file and pass it to bot.send_photo Get the file_id contained in returned Message object and save…
omer
  • 522
  • 1
  • 8
  • 26
1
vote
0 answers

Telegram API BadRequest error after calling sendMediaGroup with specific videos

I am trying to make telegram bot using library python-telegram-bot. One of the features of my bot is to send Instagram’s stories to the user. For this feature I am using method sendMediaGroup with several InputMediaVideo or InputMediaPhoto in the…
1
vote
1 answer

Telegram Flood prevention

There was such a problem: I ran the program many times and now it throws the following error FloodException: Flood prevention. Telegram now requires your program to do requests again only after 73611 seconds have passed (TimeToWait property). If you…
num0
  • 11
  • 1
  • 2
1
vote
2 answers

Telegram web login widget: obtain chat_id

I'm trying to add a user authorization to my page using Telegram's Login Widget. The widget works as expected but there are a lack of information about how to use it in real scenarios. When the authentication succeedes my bot is allowed to send…