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.

Main features

Messaging

It was the main feature of Telegram. It allows you to send messages to users who have the contacts and we know the nickname.

Groups

The groups are conversations between more than two users, I can reach up to 200 users. Each member of a group can add users, change the name of the group or avatar. Exceeded 200 members, the group becomes a "Supergroup". The supergroup can get to 100,000 users.

Channels

The channels are groups that do not have a limit of users . The peculiarity is that only administrators can write to the channel.

Bots

Telegram Bots are programmed accounts without a phone number. they can not initiate a conversation with a real user. The bot API provides methods to interact with users including sending and editing messages, custom keyboards, commands. (API Documentation)

5905 questions
26
votes
10 answers

Telegram bot weird error : Bad Request: wrong file identifier/HTTP URL specified

I am sending message to telegram channel using bot. With using webhook method. I'm sending file_id via the link. I got the file_id from a channel post. For some files like GIF & video format (MP4), when i use this code: $url =…
Farzad
  • 842
  • 2
  • 9
  • 26
26
votes
6 answers

How do I have my Bot respond with arguments?

So I've built a Telegram bot, which can receive the following commands: /list /info 123 This works great, as I can catch /info and pass the additional arguments as ints. But, sadly, the Telegram clients don't see /info 123 as a complete command,…
Mave
  • 2,413
  • 3
  • 28
  • 54
26
votes
2 answers

Using Telegram API for Java Desktop App?

I am not that new to Java Programming, but I have never worked with external libraries etc. Now I want to develop a desktop client for the "Telegram" open-source messaging platform, and I'm stuck when it comes to API-Usage. There is pretty much…
LukeLR
  • 1,129
  • 1
  • 14
  • 27
25
votes
3 answers

Automate posting messages to a Telegram channel via API

I am new to the Telegram API. I would like to automate posting messages to my public telegram channel. I read a few posts that with bots I can achieve this, but I am not sure if that's the best way and whether the API has an option to directly…
apadana
  • 13,456
  • 15
  • 82
  • 98
25
votes
2 answers

How does telegram shows the Icon of some websites?

I am working with telegram on windows and its online version on web.telegram.org, when I share a link with my friend Telegram shows the icon or logo of some websites in that message: Image The first website is vajehyab.com and it has a favicon too…
user4884343
24
votes
6 answers

Error 404 while accessing api method on telegram bot

I just created a bot of telegram to finish a task for the school regarding the integration of ifttt and telegram. My problem is that trying a browser to use a method of Telegram api it returned to me the following string: {"ok": false, "error_code":…
Francesco Rossetti
  • 343
  • 1
  • 2
  • 6
24
votes
4 answers

Telegram Bot Event When Users Join To Channel

After create telegram bot, access and admin this bot to channel. how to get channel members list or event when users join to this channel?
Ali Mohammadi
  • 1,306
  • 1
  • 14
  • 28
24
votes
2 answers

Is it possible to host telegram on my own server?

Telegram is a cloud based chat service. All of their clients are open source. I was wondering if there's a way to host a 'private' telegram service on my own server. If not, is there anything out there that can provide all or almost all features…
andthereitgoes
  • 819
  • 2
  • 10
  • 24
24
votes
5 answers

Android Telegram App --> java.lang.UnsatisfiedLinkError: No implementation found for void

Unfortunally a similar question was removed at Stackoverflow some weeks ago, I must make a new question. Im trying to build an own Telegram app for android via source @ https://github.com/DrKLO/Telegram I can not get it to work, it stops on startup…
stavasknall
  • 381
  • 1
  • 2
  • 8
24
votes
2 answers

How to send request to Telegram bot API?

After creating a telegram bot and gain bot token, I want to send a request to the bot API. This link says we must send the HTTP request like this: https://api.telegram.org/bot/METHOD_NAME and brings example for easiest method "getme" which…
Ali Crash
  • 458
  • 2
  • 5
  • 15
23
votes
3 answers

Telegram bot message read callback

Is it possible to get callbacks in the webhook whenever a user reads the message sent by the bot, using Telegram bot API? It is not documented, and I cannot figure out a way how to achieve it.
user7518s
  • 452
  • 1
  • 7
  • 16
23
votes
7 answers

How to send an Embedded Image along with text in a Message via Telegram Bot API

Using Telegram Bot API, I'm aware that it is possible to send an image via https://core.telegram.org/bots/api#sendphoto However, how can I embed a remote image into a formatted message? The message I am looking to send, can be compared to a news…
Pierre-Antoine
  • 7,939
  • 6
  • 28
  • 36
23
votes
6 answers

Open telegram channel in android

In my app want to use Intent to open specific telegram channel or telegram group. i search in SF but i can't find anything.i try to implement but i only can open all messenger apps that user can choose but not telegram or specific telegram group or…
MBehtemam
  • 7,865
  • 15
  • 66
  • 108
23
votes
3 answers

Can I get a phone number by user id via Telegram Bot API?

I am using Telegram Bot API for sending instant messages to users. I have installed nuget package. This package is recommend by telegram developers. I have created a telegram bot and successfully got access to it by using code. When I send messsage…
isxaker
  • 8,446
  • 12
  • 60
  • 87
22
votes
4 answers

Get all users of telegram group

I'm trying to obtain all users of a telegram group, I see the method getChatAdministrators, but I think the API doesn't have a method for obtaining all members. I'm using telegram-bot-api of nodejs
juanjo Rodriguez
  • 221
  • 1
  • 2
  • 4