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

How create link with text and paste it to telegram desktop

Im trying create "copy" button for using clipboard in different apps. I'm expect that: ctrl+v in simple text editor will create plain text ctrl+v in RTF (or in app with "link" support) will create link Here is a simplified code example: const…
Kirill
  • 161
  • 2
  • 15
1
vote
0 answers

get telegram user id and forward data to web app

i starting creating new function from telegram web app. I trying create web app shop, about to create web app interaction it success. but how to forward data from telegram to web app? example: a buyer click my product in my telegram bot and add to…
1
vote
1 answer

Error while writing the tg bot. What to do?

The following error is displayed in the line with StartReceiving: Severity Code Description Project File String Suppression Status Error CS0121 Ambiguous invocation of the following methods or…
Efrem
  • 11
  • 1
1
vote
0 answers

Reactions buttons under post published by telegram bot

I am created a telegram bot which send my post to the particular channel. And I wonder how can I make it add something like like and dislike buttons under post and a counter for every reaction. I know how to create this buttons: But how to make…
1
vote
1 answer

Python Telegram Bot: show message history for new group members

With a python based telegram bot that should help to setup group settings I want to hide/unhide the message history for new group subscribers. I am using the python-telegram-bot API wrapper (documented here). For setting other permissions there is a…
1
vote
1 answer

SessionRevokedError and continously being logged out when I try to access the Telegram-API

I am using the telethon-API to access the telegram-API for some network analysis over multiple groups. As I didn't quite understand how the spam-protection works I tried to test the limits of when telegram stops me from sending requests. I executed…
HannoChan
  • 11
  • 2
1
vote
1 answer

Send inline keyboard to Telegram group using JS

I'm using JavaScript to send a message to Telegram using the Telegram Bot API const url = `https://api.telegram.org/bot/sendMessage?chat_id=${chat_id}&text=${message}` const data = await fetch(url).then(resp => resp.json()) I want to…
vtable
  • 302
  • 2
  • 15
1
vote
1 answer

HTTP POST using Telegram Webhook

I have an endpoint that I run using curl command curl -X POST https://example.com/control -d "channel=X&turn=XXX&id=XXXXXX&auth_key=XXXXX" I want to bind between Telegram Webhook and that POST , so each time my Telegram bot will get a message it…
vtable
  • 302
  • 2
  • 15
1
vote
1 answer

Plot a function with telegram bot (python, matplotlib)

I faced with the problem during telegram bot writing. I would be very happy if somebody help me with this. My code import telebot import matplotlib.pyplot as plt import numpy as np ... def plot_func(message): x = np.linspace(-5,5,100) y =…
1
vote
0 answers

How do I log in to a telegram account via sms and also withdraw tdate or session via node.js?

How do I log in to a telegram account via sms and also withdraw tdate or session via node.js? I will be very grateful. It is necessary that when a user enters a code in my bot with telegram, then his account is logged in and also the tdata or…
1
vote
0 answers

I'm trying to make a loop of callback query handler and inline button

I'm trying to make a game bot on telegram, but I'm confused in callback query. I have made a command named /start. When a user sends that command, the bot sends two inline keyboard a and b. If a gets pressed, the bot runs a code c = 10 - 2. If b…
1
vote
1 answer

How to Reply Message in Unknown ChatBot Telegram with Python?

I have a ChatBot in Telegram that forwards message from others to me and I can reply their messages by replying messages in bot. When I reply a message, the bot checks that message user id, and send my message to that id. But for someone that make…
MaTiN
  • 11
  • 5
1
vote
0 answers

how to change a message using telethon python

new_message=old_message+new_str client.edit_message(chat, message.id, new_message) I am changing the message this way, but the font and links in the old message disappear.how to do it correctly?
johan1
  • 11
  • 1
1
vote
0 answers

How to use custom emoji in telegram bot

We have created a simple telegram bot using telegram api that sends short messages occasionally to users. we desire to include a custom emoji in its messages. regarding to latest telegram update version 6.2 it's possible. So any idea how can we do…
1
vote
1 answer

Telegram API "parseMode:MarkdownV2" doesn't change text style

so I try to use Telegram's API to send messages to a group. Sending messages is working, but when I try to send messages with a certain style, for example bold, it just doesn't work. My example message is: "* hello send help *". It should look…
yuvalhad12
  • 23
  • 4