Questions tagged [telegram]

Telegram is a cross-platform cloud-based instant messenger with a focus on security. Use this tag for questions about interacting with Telegram, including use of its official API.

1
vote
0answers
14 views

How to identify my telegram channel via my bot

I use the below method for my bot to delete any forwarded channel post that others send to my group on telegram, but I want the bot not to delete my forwarded channel post. How can I do it? $forward ...
0
votes
1answer
18 views

Telegram bot Referal with Php using the /start command

I am trying to get points allocated to ma user based on the number of referrals, using the telegram bot by passing a payload to the /start command from where i can track it and know who has been ...
0
votes
0answers
13 views

Error about robot telegram on Python base

The telegram robot is written in Python. Make a file on the server, change it, call, and send to robot. But when I send the request, I get a error: [400 MD5_CHECKSUM_INVALID]: The MD5 checksums do ...
-2
votes
0answers
10 views

Telegram Bot with pytelegrambotAPI

I am hoping to create a simple question(I ask) and answer(they answer) telegram Bot using Python but I am not sure how can I do that. I have thought of using a system like maybe I could use the send ...
0
votes
1answer
14 views

find a Telegram channel members count without any libraries in php

I am trying to find a Telegram channel members count without any libraries in php. When we open this link we can see the count: https://t.me/{telegram channel id}/ Is it possible extract the count ...
0
votes
0answers
11 views

How can I create a Telegram Proxy on a PHP webhost?

The problem is all the telegram proxies I found need a VPS to be installed on. At least as far as I understand. Telegram provides some options of different proxies, SOCKS5, HTTP and MPPROTO. However ...
0
votes
0answers
24 views

Send a PDF file to telegram using PL/SQL- UTL_HTTP code

I'm trying to send a pdf document and a small description about it from my server to a Telegram group using a Telegram bot user. I'm able to send a document by itself using the method /sendDocument. ...
0
votes
0answers
14 views

Telegram Bot: How to realize a simple/conversational Login (Access Control List) policy?

I'm developing a Telegram Bot in education/classrooms context. The bot could be used just by involved students and teachers. As far as I know, Telegram bot doesn't offer an ACL (Access Control List) ...
0
votes
0answers
17 views

Sending a file using SendDocument with TelegramAPI

I am trying to send a file using the sendDocument method with the Telegram API. I am trying to send a tuple with the filename and the content of the file, but the Telegram API complains that there is ...
0
votes
0answers
19 views

Telegram client on pythonanywhere using telethon

SORRY FOR MY ENGLISH!)) Trying to launch telegram client on pythonanywhere hosting using flask Loaded all necessary libraries (see photo1) On this site created an api-application, got it app_id and ...
0
votes
1answer
16 views

Get all the users of a channel in Telegram using telethon library

I have tried to get all the users from a channel using telethon builtin method (get_participants). def all_participants(): client = TelegramClient('name', api_id, api_hash) client.start() ...
-2
votes
0answers
13 views

My telegram app runs using android studio, but gets OutOfMemoryError (1040KB stack Size) pthread_create error when i install and run using apk

I have created a telegram android application using it's open-source code, and it runs fine when i run it using Android studio, but i get an Out Of Memory Error (1040KB Stack Size) ...
0
votes
1answer
21 views

How to exclude the /command from message_handler in the dispatcher of Aiogram?

I've a message handler that respond to a command in a Bot application written in python3 with the library Aiogram. I can receive from the application the message I send to the BOT, but I would like ...
0
votes
0answers
20 views

Exporting mysql data to telegram as contacts

I am trying to export the data from mysql to telegram as contacts, need to code it in PHP. Documentation says, contacts.importContacts can do it. But no idea from where to start. I already have api_id ...
0
votes
0answers
16 views

Can i use sim800l to store gps location to telegram BOT?

Could sim800L used to store gps location(ublox neo 6m) to telegram BOT then send it to user's phone?
0
votes
0answers
41 views

Why does setDataAndType method make my app crash?

I'm trying to share a text to a precise chat on telegram. I'm using Android Studio. If use only .setData (giving the URI to open the right chat) I manage to open the right chat without sharing ...
0
votes
0answers
15 views

Setting up website for Seamless login with telegram bot

I'm trying new feature seamless login for telegram bot. How can I set up my website to accept users from Telegram. I'm now running a bot on longpolling method. I have read Telegram weblog and ...
1
vote
1answer
27 views

Error when try to connect to telegram bot at spring boot app

I cant fix problem with my spring boot application, where I tried to create my own Telegram bot. After Spring container created and app start, I see at logs same error : Error logs 2019-06-17 ...
-4
votes
0answers
30 views

How do I fix a “System.Net.Sockets.SocketException” error in telegram API?

The error does not shut down the program, it appears only when debugging. Here is the part of code of the authentification. channelWritter = Worker.GetChannelWriter(phoneTextBox.Text, apiIDTextBox....
0
votes
0answers
18 views

Multiple request_location in a telegram bot

Is It possibile to have multiple keyboardButton in a bot with request_location = true? I must put in my bot two buttons with request_location = true, but I'm not able to manage it differently.
-1
votes
1answer
74 views

creating good database for telegram bot in python

this function allows me to store the variable in a single column, how can I store the next variable in the next column? The code register the user but don't cross check(user can register multiple ...
-1
votes
0answers
11 views

Is there any trick for a telegram bot to read a message from a channel

I know it's not possible for a telegram bot to read a message from a channel of which I am not an admin. Is there any way to accomplish this (by a trick may be) ? E.g. by sending the message from a ...
0
votes
0answers
17 views

How to send diffetent pictures every morning in IFTTT?

Good afternoon! I want to create an applet, which will send a picture-verse of the day from bible into Telegram chat every morning. In applet's settings I can setup only link of image. But this link ...
-2
votes
0answers
20 views

Can I host my Telegram Bot with my ASP.NET Core website?

I want to use my telegram bot and host it with my hosting service in my asp.net core website and I want to manage it from there , can I do it? If yes , is there any article about how can i do it
0
votes
0answers
20 views

How to check reply status in C# - Telegram Bot

How can I check the reply from keyboard using Telegram. Bot framework with C# in my telegram bot? I have that code below to get the answer of user if (e.Message.Type == Telegram.Bot.Types.Enums....
1
vote
0answers
27 views

How to find permanent Telegram file link?

I am trying crawl some channels data from Telegram web client. In this case some files of Telegram have links from cdn like this one: https://cdn4.telesco.pe/file/SYmat3daXTqSHeIdhvRLnjetlwx4... ...
0
votes
0answers
38 views

Pause a for loop until external callback method is called

Non-technical explanation of what I'm trying to do: I have a bot that sends a user a picture, when the user clicks the "done" button it sends him the next picture, and so on until there are no more ...
0
votes
1answer
8 views

Getting signature error while installing a different version of the app

Recently I installed a custom ROM named eelo. In that Telegram app comes pre-installed thus it can be regarded as a system app. But it is a custom built with a different it lacks a lot of features and ...
0
votes
0answers
11 views

Telegram is pulling wrong headline of my article when shared in messages

When I send links in telegram, it pulls the thumbnail and headline of the links. But for some reason, some links are pulling the wrong headline. It pulls headline from inside the articles. How is ...
1
vote
0answers
26 views

Callback Query Telegram games

I have created a game using BotFather. I can send the game using "sendgame" method, but I am not able to launch it when pressing "play" button. I am using requests module to send the game and I don't ...
0
votes
0answers
44 views

How to fix SocketException while connecting to Telegram Bot API in Java App

I'm working on my Telegram bot. I know, in my country Telegram is locked, so I decide to connect to Telegram Bot API through proxy. When I try to run this code: import org.telegram.telegrambots....
0
votes
0answers
15 views

how to fetch telegram channels subscribers count from source code

I want to get a channel subscribers count without joining to that channel. I don't want to use a bot for it. below code which I used, returned zero for count. This is a part of my code: TLRPC.Chat ...
4
votes
1answer
161 views

Is it possible to await a WizardScene?

I developed a bot for Telegram using TelegrafJS and I'm also using the library TelegrafInlineMenu for handle the menu layout. I've registered a WizardScene for validate the user input, here the code: ...
0
votes
1answer
27 views

Failed to connect to telegram via telethon

I'm trying to connect to telegram via telethon from Python application proxy_ip = str('188.166.86.173') proxy_port = str(1080) with TelegramClient('anon', api_id='123456', ...
1
vote
0answers
57 views

How verify if a member is admin?

I'm working on a bot for supergroups. How I can verify if member is admin? my lib:org.telegram 4.2 https://core.telegram.org/bots/api I tried with ChatMember, GetChatAdministrators and SendMessage ...
0
votes
0answers
39 views

How can I send notifications every minute to the telegram bot with PHP?

The scenario is as follows, I want to send messages or notifications (without commands sent by users) every minute on a Telegram channel. It happens that I can send the messages every time I enter ...
0
votes
0answers
18 views

How to login users into my iOS app via Telegram?

I want users to log into my iOS app via Telegram. Is there a way I could do that? I couldn't find such api that could help me do that. Any help would be highly appreciated.
0
votes
0answers
16 views

Receiving a new message from user pytelegrambotapi

It is necessary to do so that when you select "Send message to everyone", the previous message (“Send message to everyone”) is reset and replaced by what the user writes. How to do it? @bot....
0
votes
0answers
35 views

Is there a function getting a message by id in python-telegram-bot?

I use a telegram bot to send and edit messages later. I have a list of message ids that were sent already. Due to some exceptions, some messages are not edited and left in the initial state. Is there ...
0
votes
1answer
35 views

Adding InlineKeyboardButton dynamically

I'm writing a telegram quiz bot. I have a list of questions from a certain exam. The main problem is that questions have different numbers of choices. So I need to create InlineKeyboardButtons ...
0
votes
1answer
19 views

Cannot import telethon

Had telethon working with my code. For some reason, my code did not work anymore after some time, so tried to upgrade telethon library. Now, even not able to import telethon. Followed installation ...
1
vote
0answers
49 views

Telegram Bot API: voice message audio spectrogram is missing. A bug?

I'm developing a Telegram bot and I have a question about sendvoice API to send voice (audio) messages. I push a OGG file converting from a MP3 source file, using ffmpeg for conversion, with the ...
0
votes
1answer
43 views

Why does the response from telegrams come with unicode?

Ex: r = requests.post(config['send_photo_method'], data={'chat_id':config['chat_id'], 'caption': msg_to_send}, files={"photo":get_media_blob(driver, get_img_blob(driver))}) print(r.text) Output: {"...
-1
votes
0answers
30 views

Telegram Group destroy

I would like to know if there was a way to get many users in and out per second in order to make the group unusable. If this is not possible I would like to know if there are any bugs in the Group ...
1
vote
3answers
69 views

Failed to create wallet for ton with Fift?

Right now I'm trying to create wallet for TON. I downloaded and built Fift interpreter an was trying to create new wallet with: ./crypto/fift new-walelt.fif [ 1][t 0][1559491459.312618017][fift-...
0
votes
2answers
38 views

How can I include the Telegram login widget in an Angular app?

I want to include the Telegram login widget in my Angular application. For this, you have to include the following script: <script async src="https://telegram.org/js/telegram-widget.js?5" data-...
0
votes
1answer
34 views

Telegram Bot how to set parsing mode in curl?

Im editing some script for telegram bot, and I only want to add parsing mode html, so it allows me to use bold,italic etc.. I cant seem to find way to adopt parse_mode: "HTML" to curl line if [ -n "...
0
votes
1answer
32 views

Telegram Telethon multiple keyword search

I am using Telethon package in Python to search for unique message from a channel. I am using the following code to search from the channel I am subscribed to: for index, x in enumerate(client....
0
votes
0answers
26 views

'asm' operand has impossible constraints while compiling telegram jni folder

I'm trying to build Telegram source code. I've followed this steps but when I run ndk-build command after some minutes, I face this error: /home/user/Android/Sdk/ndk-bundle/sources/android/...
-1
votes
1answer
50 views

have errore to BUILD telegram android source

this is a warning: WARNING: The following project options are deprecated and have been removed: android.useDeprecatedNdk NdkCompile is no longer supported Affected Modules: TMessagesProj ...