Comments (9)
@midnightcoder-pro Thanks! Fixed in Bot API 5.0.1.
from telegram-bot-api.
Could you provide an example of the issue, including raw updates received by the bot?
from telegram-bot-api.
https://api.telegram.org/botToken/getUpdates
returns normally result, but sometimes there is no media_group_id field. Or should I create blank bot, channel and linked group to provide an example?
getUpdates (personal information removed)
[
// original posts in channel
{
"channel_post": {
"message_id": 735,
"sender_chat": {
"type": "channel"
},
"chat": {
"type": "channel"
},
"media_group_id": "replaced", // here it is
"photo": []
}
},
{
"channel_post": {
"message_id": 736,
"sender_chat": {
"type": "channel"
},
"chat": {
"type": "channel"
},
"media_group_id": "replaced",
"photo": []
}
},
// reposts in comments chat
{
"message": {
// there is no media_group_id field here 😥
"from": {
"id": 777000,
"is_bot": false,
"first_name": "Telegram"
},
"sender_chat": {
"type": "channel"
},
"chat": {
"type": "supergroup"
},
"forward_from_chat": {
"type": "channel"
},
"forward_from_message_id": 735,
"photo": []
}
},
{
"message": {
"from": {
"id": 777000,
"is_bot": false,
"first_name": "Telegram"
},
"sender_chat": {
"type": "channel"
},
"chat": {
"type": "supergroup"
},
"forward_from_chat": {
"type": "channel"
},
"forward_from_message_id": 736,
"photo": []
}
}
]
from telegram-bot-api.
Would allowed_updates=media_group_id
work?
My bet is that those are indeed regular (non-album) photos.
from telegram-bot-api.
There is no media_group_id
update type in https://core.telegram.org/bots/api#update
from telegram-bot-api.
But there's no photo
either...
from telegram-bot-api.
It doesn't matter, it still gets data with an error
(I use telegraf nodejs lib, that's why I added their subtype to the query out of habit)
from telegram-bot-api.
@midnightcoder-pro Could you send full received updates with all fields to @tdlib_bot in Telegram?
from telegram-bot-api.
@levlam ok, I sent
from telegram-bot-api.
Related Issues (20)
- How can I be sure that Telegram BOT API local server is running properly? HOT 4
- Blockquote HTML syntax issues HOT 1
- pending_update_counts delay HOT 15
- get 404 error on download file! HOT 11
- Bot latency HOT 6
- Failed to forward message: 'Bad Request: message thread not found' HOT 7
- Persistent "ERROR" When Creating Telegram Application HOT 6
- Change the maximum upload size HOT 1
- not able to set more webhooks! HOT 9
- Too few replies to incoming private messages. Conversion is 0% HOT 1
- [ASK] Why not found method getinvoicelink ? HOT 4
- Reactions order in MessageReactionUpdated is not preserved? HOT 3
- message_reaction treats supergroup itselfs reaction as from private chat HOT 2
- Rouse
- Error sending fileid of flac audio in inline request HOT 6
- tele
- Unpaired UTF-8 Bidi Control Character Detected During Build HOT 3
- add WebApp.navigateTo() into the telegram web app js script HOT 1
- Idle Timeout Expired HOT 3
- send file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-bot-api.