Giter Club home page Giter Club logo

Comments (8)

yuraiz avatar yuraiz commented on July 26, 2024 1

View counts and reactions just aren't implemented yet

You can build flatpak using Gnome Builder or flatpak-vscode extension (or just with flatpak-builder)

from paper-plane.

melix99 avatar melix99 commented on July 26, 2024 1

So instructions on the main page on building with Gnome builder and Meson work for some specific OS only?

GNOME Builder works automatically because it will use the flatpak manifest by default. If you choose to use Meson instead, the app expects you to install all the required dependencies, which are correctly listed in that section, together with all the required versions. How do you want to install those dependencies is up to you. The app is not designed to work on a specific distro. The app currently requires non-tagged versions of gtk4 and libadwaita because we want the app to be prepared for GNOME 45.

from paper-plane.

melix99 avatar melix99 commented on July 26, 2024

The main branch uses dev versions (i.e. the main branch) of some dependencies (in this case both gtk4 and libadwaita), that's why you don't have those dependencies yet. I suggest using flatpak to build the app so that you don't need to worry about dependencies anymore.

from paper-plane.

makorne avatar makorne commented on July 26, 2024

So instructions on the main page on building with Gnome builder and Meson work for some specific OS only?
May be Ubuntu XX ?
Please provide the name and the version of these OS.

Now I installed using flatpak but in this version all posts don't even have reactions and view counts.

from paper-plane.

makorne avatar makorne commented on July 26, 2024

View counts and reactions just aren't implemented yet

May be they are useless at all?
I tried tdlib-rs example with adding the following code in fn handle_update() :

        Update::MessageInteractionInfo(update) => {
            println!("{:?}", update);
        }

and found that UpdateMessageInteractionInfo triggers updates very seldom even on channels with 2 million users and results are far away from real numbers in official telegram client.

[ 2][t 4][1688098940.985427141][UpdatesManager.cpp:1110][#1][!Td]	Schedule getDifference in 1 seconds with PTS = 7, QTS = 0, date = 1688082165 from add_pending_channel_update 1
UpdateMessageInteractionInfo { chat_id: -1001366415996, message_id: 11890703990784, interaction_info: None }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64736985088, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 4, recent_replier_ids: [User(MessageSenderUser { user_id: 5897198547 }), User(MessageSenderUser { user_id: 6223765102 }), User(MessageSenderUser { user_id: 1775764676 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64738033664, interaction_info: Some(MessageInteractionInfo { view_count: 6, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 5686190786 }), User(MessageSenderUser { user_id: 1775764676 }), User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64739082240, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 1775764676 }), User(MessageSenderUser { user_id: 6223765102 }), User(MessageSenderUser { user_id: 5042989285 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64740130816, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 6223765102 }), User(MessageSenderUser { user_id: 5042989285 }), User(MessageSenderUser { user_id: 1775764676 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64741179392, interaction_info: Some(MessageInteractionInfo { view_count: 4, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 1, recent_replier_ids: [User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64741179392, interaction_info: Some(MessageInteractionInfo { view_count: 9056, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 5, recent_replier_ids: [User(MessageSenderUser { user_id: 1869734897 }), User(MessageSenderUser { user_id: 6132490162 }), User(MessageSenderUser { user_id: 1656902924 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "🀬" }), total_count: 93, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ™" }), total_count: 19, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😱" }), total_count: 15, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ‘" }), total_count: 9, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ‘Ž" }), total_count: 3, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "❀" }), total_count: 3, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😁" }), total_count: 1, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "🫑" }), total_count: 1, is_chosen: false, recent_sender_ids: [] }] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64742227968, interaction_info: Some(MessageInteractionInfo { view_count: 2, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 2, recent_replier_ids: [User(MessageSenderUser { user_id: 1775764676 }), User(MessageSenderUser { user_id: 5042989285 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64742227968, interaction_info: Some(MessageInteractionInfo { view_count: 47185, forward_count: 205, reply_info: Some(MessageReplyInfo { reply_count: 93, recent_replier_ids: [User(MessageSenderUser { user_id: 6094325768 }), User(MessageSenderUser { user_id: 2059061947 }), User(MessageSenderUser { user_id: 5135596883 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ‘Ž" }), total_count: 457, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "🀬" }), total_count: 119, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ”₯" }), total_count: 38, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ‘" }), total_count: 31, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "🀯" }), total_count: 26, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😁" }), total_count: 21, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😱" }), total_count: 14, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "🫑" }), total_count: 6, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "❀" }), total_count: 4, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😒" }), total_count: 2, is_chosen: false, recent_sender_ids: [] }] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64743276544, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 0, recent_replier_ids: [], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64744325120, interaction_info: Some(MessageInteractionInfo { view_count: 5, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 2, recent_replier_ids: [User(MessageSenderUser { user_id: 5527093040 }), User(MessageSenderUser { user_id: 6250080889 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64745373696, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 6195056684 }), User(MessageSenderUser { user_id: 5042989285 }), User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64746422272, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 6195056684 }), User(MessageSenderUser { user_id: 5042989285 }), User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64747470848, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 2, recent_replier_ids: [User(MessageSenderUser { user_id: 5995949582 }), User(MessageSenderUser { user_id: 5042989285 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64748519424, interaction_info: Some(MessageInteractionInfo { view_count: 2, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 0, recent_replier_ids: [], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64746422272, interaction_info: Some(MessageInteractionInfo { view_count: 147869, forward_count: 975, reply_info: Some(MessageReplyInfo { reply_count: 56, recent_replier_ids: [User(MessageSenderUser { user_id: 5089867959 }), User(MessageSenderUser { user_id: 1159349379 }), User(MessageSenderUser { user_id: 5102889367 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "🀬" }), total_count: 618, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😒" }), total_count: 195, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ‘" }), total_count: 55, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😱" }), total_count: 46, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ”₯" }), total_count: 14, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😭" }), total_count: 14, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "😁" }), total_count: 11, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "❀" }), total_count: 9, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "πŸ‘" }), total_count: 1, is_chosen: false, recent_sender_ids: [] }] }) }

Or may be this example needs changing some settings?

from paper-plane.

yuraiz avatar yuraiz commented on July 26, 2024

May be they are useless at all?

I don't think they're useless

UpdateMessageInteractionInfo triggers updates very seldom even on channels with 2 million users and results are far away from real numbers in official telegram client.

Telegram web also uses tdlib and info seems good enough for me, don't see any reason for updates to be often, the numbers are rounded anyway

from paper-plane.

makorne avatar makorne commented on July 26, 2024

1-10 views a day on channels with 2000000 users???
Such a small view count is impossible!
Just compare your numbers for any big channel with the telegram client.

from paper-plane.

marhkb avatar marhkb commented on July 26, 2024

I locked this for off-topic. Please use a new thread or the Telegram group to discuss.

from paper-plane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.