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
https://core.telegram.org/bots/api#keyboardbutton
Читать полностью…
There is no callback, the method is on a regular keyboard button.
Читать полностью…
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.
Читать полностью…
---- 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?
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
wtelegramclientbot article also has a line "Bots can use this method ✓" when it applies
Читать полностью…
the doc says "Only users can use this method" which means, not bots
Читать полностью…
i don't think is there any specific method for that
Читать полностью…
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)
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" }
}
}invite_link is NOT included in chat_member for public channels?creates_join_request: true (join requests) guarantee receiving invite_link?
Which buttons you're taking about? Inline or reply?
Читать полностью…
Editing what ? caption ?
If yes then use editMessageCaption instead of editMessageText
Go to chatgpt and simply ask to fix the code
Читать полностью…
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.
Читать полностью…
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?
Читать полностью…
Oh. I was guided by wtelegramclientbot, and forgot to look in the documentation, and got a little confused with messages.getHistory.
Читать полностью…
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
bots don't have access to history, you can just count messages as the bot gets them
Читать полностью…
How can one determine the number of messages a user has in a group?
Plz
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.
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
Читать полностью…