Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v0.7.0] Nadia.Model.Update.MessageEntities is always empty when picture is received #124

Open
4DA opened this issue Oct 4, 2020 · 0 comments

Comments

@4DA
Copy link

4DA commented Oct 4, 2020

Example of such post:

https://t.me/econ_papers/269

image

As you can see there should be a MessageEntity with type=text_link that points to https://economics.mit.edu/files/14084

This is a dump of Model.Update received from Nadia:

%Nadia.Model.Update{callback_query: nil, channel_post: nil, chosen_inline_result: nil, edited_message: nil, inline_query: nil, message: %Nadia.Model.Message{audio: nil, caption: "Страны со средним достатком накапливают резервы опережающим темпом, в основном для борьбы со скачками курса после резкого оттока нерезидентов. Fanelli and Straub (2020) показывают минусы такого подхода.", channel_chat_created: nil, chat: %Nadia.Model.Chat{first_name: "AAA", id: 0000000, last_name: nil, photo: nil, title: nil, type: "private", username: "AAA"}, contact: nil, date: 1601834873, delete_chat_photo:
 nil, document: nil, edit_date: nil, entities: nil, forward_date: 1601832687, forward_from: nil, forward_from_chat: %{id: -1001209908412, title: "Econ Papers", type: "channel", username: "econ_papers"}, from: %Nadia.Model.User{first_name: "AAAA", id: 36577752, last_name: nil, username: "AAAAA"}, group_chat_created: nil, left_chat_member: nil, location: nil, message_id: 297, migrate_from_chat_id: nil, migrate_to_chat_id: nil, new_chat_member: nil, new_chat_photo: [], new_chat_title: nil, photo: [%Nadia.Model.PhotoSize{file_id: "AgACAgIAAxkBAAIBKV96D3lClnbbc-w1kbGWgHgf9-YPAAKBsDEb7-XQSy7BODOkDbZ4zbN3ly4AAwEAAwIAA20AAxheAQABGwQ", file_size: 10368, height: 250, width: 320}, %Nadia.Model.PhotoSize{file_id: "AgACAgIAAxkBAAIBKV96D3lClnbbc-w1kbGWgHgf9-YPAAKBsDEb7-XQSy7BODOkDbZ4zbN3ly4AAwEAAwIAA3gAAxpeAQABGwQ", file_size: 33624, height: 626, width: 800}, %Nadia.Model.PhotoSize{file_id: "AgACAgIAAxkBAAIBKV96D3lClnbbc-w1kbGWgHgf9-YPAAKBsDEb7-XQSy7BODOkDbZ4zbN3ly4AAwEAAwIAA3kAAxleAQABGwQ", file_size: 45715, height: 837, width: 1069}], pinned_message: nil, reply_to_message: nil, sticker: nil, supergroup_chat_created: nil, text: nil, venue: nil, video: nil, voice: nil}, update_id: AAAA}
@4DA 4DA changed the title [v0.7] Nadia.Model.Update.MessageEntities is always empty when picture is received [v0.7.0] Nadia.Model.Update.MessageEntities is always empty when picture is received Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant