bottalk | Unsorted

Telegram-канал bottalk - Telegram Bot Talk

26995

Welcome to Bot Talk! 😌 Be nice 🗣 Please use English so everyone can participate 🤖 Keep the topic on bot development ⚠️ Keep media posts like GIFs and stickers to a minimum ❌ Don't add bots to the chat More info - https://t.me/BotTalk/110874

Subscribe to a channel

Telegram Bot Talk

https://core.telegram.org/bots/api#keyboardbutton

Читать полностью…

Telegram Bot Talk

There is no callback, the method is on a regular keyboard button.

Читать полностью…

Telegram Bot Talk

I see now. I've never used regular keyboard buttons before, only inline ones, so my confusion was with how I was meant to pass the parameters to the API after the user pressed the button because, for an inline button, I have to provide them. They're totally different and it pulls up a form for the user to fill out that populates the fields.

Читать полностью…

Telegram Bot Talk

---- REQUEST DATA ----
{
"chat_id": xxxxx,
"text": "❌ Action cancelled.⁣⁣⁣⁣⁣⁣⁣",
"message_id": 21199141,
"reply_markup": {
"inline_keyboard": [
[
{
"text": "🚀 Launch My Inbox⁣",
"callback_data": "mylink:0"
}
]
]
},
"parse_mode": "html"
}
---- API RESPONSE ----
{
"ok": false,
"error_code": 400,
"description": "Bad Request: there is no text in the message to edit"
}
any ideas why does this happen?

Читать полностью…

Telegram Bot Talk

So no human interaction now because ai ok 👍

Читать полностью…

Telegram Bot Talk

Just put thread id lol

Читать полностью…

Telegram Bot Talk

In what sense does it not work? More details. You don't receive updates from topics, you can't send messages to topics? Or what? This may be limited at your code level.
In any case, everything works fine for me, to send messages to the desired topic, pass messageThreadId

Читать полностью…

Telegram Bot Talk

wtelegramclientbot article also has a line "Bots can use this method ✓" when it applies

Читать полностью…

Telegram Bot Talk

the doc says "Only users can use this method" which means, not bots

Читать полностью…

Telegram Bot Talk

i don't think is there any specific method for that

Читать полностью…

Telegram Bot Talk

right-click on user icon, Search messages

Читать полностью…

Telegram Bot Talk

there's no other reliable way as far as I know

your best option is bot start parameter

but you don't have to be limited to a telegram bot
you can instead make a webpage, that'll be smoother than a bot

the webpage and bot can share the same db

(i just realised that you won't get the userid lol)

Читать полностью…

Telegram Bot Talk

@IbnMoo

Читать полностью…

Telegram Bot Talk

Hi everyone 👋

I’m building an MVP for subscriber attribution in a Telegram channel and ran into a limitation that I want to clarify with people who have real experience.

Setup:

* Telegram Bot (webhook, no polling)
* Google Sheets + Apps Script backend
* I generate multiple invite links via createChatInviteLink
* The goal is to attribute each subscriber to a specific source (marketing channels, ads, etc.)

Problem:
When a user joins the channel via an invite link (t.me/+...), I receive a chat_member update, but:
👉 there is NO invite_link field in the payload

Example of what I receive:

{
"chat_member": {
"chat": { "type": "channel" },
"new_chat_member": { "status": "member" }
}
}


So I can detect the subscription, but I cannot determine which invite link was used.

Important:

* In Telegram channel admin UI I can clearly see which users joined via which invite links
* But Bot API does not provide this data

---

Questions:

1. Is this expected behavior that invite_link is NOT included in chat_member for public channels?
2. Is there ANY reliable way to get per-user attribution from invite links in channels?
3. Does switching to creates_join_request: true (join requests) guarantee receiving invite_link?
4. What is the best practice for tracking subscribers from Telegram Ads or multiple sources?

---

My goal:
Track which users later convert into customers based on their acquisition source.

Right now it looks like:
❌ Public channel + invite links → unreliable attribution
✅ Bot start parameter → reliable but worse UX

---

Would really appreciate insights from anyone who has solved this in production 🙏

Читать полностью…

Telegram Bot Talk

@admin

Читать полностью…

Telegram Bot Talk

Which buttons you're taking about? Inline or reply?

Читать полностью…

Telegram Bot Talk

You can use the callback parameter

Читать полностью…

Telegram Bot Talk

Editing what ? caption ?

If yes then use editMessageCaption instead of editMessageText

Читать полностью…

Telegram Bot Talk

@adityalexia

Читать полностью…

Telegram Bot Talk

Go to chatgpt and simply ask to fix the code

Читать полностью…

Telegram Bot Talk

I created a GPT bot using an API Key to answer anything in a group or questions asked. But when in a group that has topics, the bot doesn’t respond at all! If it’s a group without topics and in private it works fine and smoothly, it can also generate images perfectly.

Читать полностью…

Telegram Bot Talk

Guys, I tried making a bot and it works in private chats and groups. But it doesn’t work at all in groups that have topics enabled. Any suggestions or tips?

Читать полностью…

Telegram Bot Talk

Oh. I was guided by wtelegramclientbot, and forgot to look in the documentation, and got a little confused with messages.getHistory.

Читать полностью…

Telegram Bot Talk

In mtproto you can get it through messages.Search by specifying limit 0, it will return you messages.messagesSlice which will contain count.
But, I'm not entirely sure whether it's accessible to bots. But, in my opinion, it is accessible.
In any case, this is NOT a BOT API

Читать полностью…

Telegram Bot Talk

bots don't have access to history, you can just count messages as the bot gets them

Читать полностью…

Telegram Bot Talk

How can one determine the number of messages a user has in a group?
Plz

Читать полностью…

Telegram Bot Talk

Peace be upon you. I'm having a problem with the Diamond, Mountain, and Golden Shield bots. Whenever I try to send a private message, a "come" message, or a link to any group containing one of these bots, they delete the message, restrict me, or remove me.

Please help me find a solution so I can work freely.

Читать полностью…

Telegram Bot Talk

Then I think not possible, not sure

Читать полностью…

Telegram Bot Talk

Not asking regarding premium. I sell digital assets via my bot and to cash out I have to convert stars to ton coins, this process is manual and I am trying to automate it

Читать полностью…

Telegram Bot Talk

Nothing, i misunderstood the question

Читать полностью…
Subscribe to a channel