php-telegram-bot Questions

3

Solved

I'm trying to send an animated GIF with sendPhoto (Telegram's Bot API) with this request: https://api.telegram.org/bot<token>/sendPhoto?chat_id=<chat_id>&photo=http://i.giphy.com/1...
Mesdames asked 15/12, 2016 at 18:51

4

Solved

I am making a database in which my algorithm only accepts queries from users with telegram id length of 9. user_id: 123456789; length = user_id.length; display(length); OUTPUT: 9 Are there tele...

1

I'm using telegram bot api for implementing an inline bot. For sending query result to the user, I'm using answerInlineQuery method in this way. This is just an example for showing a photo that exi...
Jaeger asked 19/7, 2018 at 17:11

2

Solved

How can I send this text correctly: $parameters['text'] = 'you must see [example](example.com) or contact with @exmaple_com'; if I don't use "Markdown", telegram don't show the above link if I u...
Firewarden asked 19/7, 2017 at 17:5

2

I want mention users even those which do not have a username. If a user has set up a username I return Hi @username as an answer but if a user does not have one I can't do that. I tried using...
Bedel asked 1/12, 2016 at 8:38

0

I am working on a telegram bot and set up a webhook to store chat id of users into my laravel app's DB. I was getting the chat id previously but today, I getting NULL. I am using ngok for https to ...
Serpent asked 17/8, 2021 at 10:31

2

Solved

As far as I read the Telegram Bot API's docs, Telegram do not limit the calls to your webhook callback in any way. I am creating a Telegram Bot that will be available only for groups and channels ...

6

Solved

I Started programming a telegram bot and I've got a problem. when I send /start command it sends me a welcome message (as i programmed it) but it doesn't sends it once! it keeps sending it endlessl...
Encaustic asked 14/11, 2016 at 16:58

3

Solved

I wanna match Telegram username in message text and delete entire line, I've tried this pattern but the problem is that it matches emails too: .*(@(?=.{5,64}(?:\s|$))(?![_])(?!.*[_]{2})[a-zA-Z0-9_]...
Untangle asked 7/8, 2020 at 19:35

2

Solved

I must program in php due to company needs... but I am working with php for first time... and it's the first time I am working with telegram bot :'( In some way, before, when i ran the command /st...
Unequaled asked 26/8, 2017 at 10:45

1

Solved

I want to get callback data from response but array is empty. I am trying to show in message callback_data array. Here is my code: $botToken = "token"; $botAPI = "https://api.telegram.org/bot" ...
Trouper asked 24/3, 2020 at 13:21

2

Solved

The following code works, it adds custom keyboard keys 'Button1' and 'Button2' $keyboard = [ 'keyboard' => [['Button1'],['Button2']], 'resize_keyboard' => true, 'one_time_keyboard' =>...
Inearth asked 18/1, 2017 at 0:22

1

Solved

On Telegram, every group has a chat-id that my bot saves whenever it is added to a group. If an owner of a group converts it to a supergroup, will the ID of the group change? And if it does, how c...

4

Does exists any way to get bot's statistics with API or with web interface or with BotFather? Or I must to collect statistics by processing updates from bot API? ps. Currently I store statistics i...
Cushy asked 17/11, 2016 at 10:12

1

Solved

I'm developing a Telegram bot and want to use ngrok to receive messages from the webhook. Setting a webhook works. When I set my publicly reachable domain as URL, I actually get the expected messa...

1

The user object has no photo_id, so is there way to get the user's avatar?
Cleland asked 20/4, 2016 at 3:24

1

I'm making a basic Control Panel for managing my Bot with PHP. Basically I want to display the Profile picture / avatar of the user who is sending message to the bot. However the user object has ...

1

I'm trying to make telegram bot .I have made 20 bot so far and now when I select newbot from bot father it says this : " That I cannot do. You come to me asking for more than 20 bots. But yo...
Schecter asked 13/6, 2017 at 13:19

2

Solved

I have a bot in Telegram, which query can I get a list of all messages in a group or channel? As I understand, requests like: https://api.telegram.org/bot_token/getUpdates?chat_id=@chat Let me...
Mastrianni asked 18/4, 2017 at 16:38

1

I want to get Telegram channels updates (posts) with api by php! (I am not channels admin) I am not sure can I do this with bot or not? if it is not possible how can do that with telegram a...
Montenegro asked 15/3, 2017 at 6:43

1

Solved

I am designing a telegram bot. I want to show some links e.g. 1- wkpviana 2- vianahosting that when user click it, open http://wkpviana.net http://vianahosting.ir in browser. How I ca...
Fiance asked 16/1, 2017 at 20:42

1

Solved

I wanted to make a url for the words in telegram bot. Used this code but it doesn't work: https://api.telegram.org/bot$botToken/sendMessage?chat_id=chat_id&text=<a href="url.com">the wor...
Votive asked 27/12, 2016 at 12:29

1

Solved

I have a Telegram bot and I save all user activity in a log file. When I checked the log file, I found a user with a negative chat ID -107606558. Is this normal?
Morganatic asked 28/8, 2016 at 10:45

1

Solved

I'm working on a telegram bot and I need to download photo, audio, video sent by user to the bot. Using the only path returned by the get file method I only get a thumbnail. In fact the only result...
Drawshave asked 20/8, 2016 at 9:2
1

© 2022 - 2024 — McMap. All rights reserved.