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

Create a new pull request by comparing changes across two branches #743

Merged
merged 113 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
4288ba2
Improved UX in box for link creation when user has link in clipboard.
23rd Sep 18, 2024
b78443c
Added mini icon to drafts with reply.
23rd Sep 16, 2024
969152e
Move FieldAutocomplete to ChatHelpers.
john-preston Sep 13, 2024
ba7cd25
Extract FieldAutocomplete code.
john-preston Sep 13, 2024
3eec43c
Add FieldAutocomplete to SendFilesBox.
john-preston Sep 13, 2024
2e2d8d2
Add FieldAutocomplete to EditCaptionBox.
john-preston Sep 13, 2024
8b86f12
Fix quote-reply to album captions.
john-preston Sep 16, 2024
592d46c
Fix emoji packs from album captions.
john-preston Sep 16, 2024
3658b32
Correctly count 'other accounts unread' in menu.
john-preston Sep 16, 2024
3218c30
Add "Include muted chats in folder counters".
john-preston Sep 16, 2024
296969b
Add "Ada" library mention to README.
john-preston Sep 19, 2024
ca00a19
Updated emoji resources to Unicode 15.1.
john-preston Sep 19, 2024
4befb12
Update emoji to Unicode 15.1.
john-preston Sep 16, 2024
3a9eb84
Try to always use QWidget::screen
ilya-fedin Sep 8, 2024
a307e7a
Replace fullscreen mask workaround with Qt one
ilya-fedin Sep 3, 2024
7abc921
Revert "Fullscreen hack for Windows 11 native resize"
ilya-fedin Sep 10, 2024
4a84f9f
Allow resizing window of web apps / games.
john-preston Sep 19, 2024
a2fad84
Update API scheme to layer 188.
john-preston Sep 13, 2024
3f6d184
Added api support for clicks on sponsored messages with media.
23rd Sep 17, 2024
67ce27a
Update patches for Qt 6.8 on Windows.
john-preston Sep 19, 2024
666dacf
Add 'tonsite' handler information to lib/xdg/*.
john-preston Sep 19, 2024
aec220f
Beta version 5.5.6.
john-preston Sep 19, 2024
0960a3b
Fix restrict user in recent actions
c0re100 Sep 11, 2024
d69bcfa
Update lib_webview & lib_ui
ilya-fedin Sep 26, 2024
b962d2b
Update Qt 6.8.0-beta4 -> 6.8.0-rc1
ilya-fedin Sep 26, 2024
187c2dd
Check more protocols while adding link (#28407)
xmdnx Sep 26, 2024
cb166e2
Fix build with clang 19.1.0.
VladislavGrudinin Sep 23, 2024
1fa2e76
Updated codegen submodule.
VladislavGrudinin Sep 26, 2024
2b0aa8e
Add description for external video player option
ilya-fedin Sep 27, 2024
fbaa79f
Fixed display of outline in box for share of QR code on non-retina.
23rd Sep 27, 2024
7cc9a0b
Added ability to share QR code of bots.
23rd Sep 27, 2024
3f34c0c
Slightly improved style of box for warning of web view box.
23rd Sep 27, 2024
a37f512
Fixed emoji display in filenames from document views.
23rd Sep 29, 2024
e6b76fe
Show correct error for discuss groups.
john-preston Sep 27, 2024
a3c79fe
Always show My Stars menu.
john-preston Sep 30, 2024
0f4aadd
Fixed display of corner status of video in sponsored messages.
23rd Sep 20, 2024
ab5e7b1
Fixed color of mini icon for drafts with reply when dialog is selected.
23rd Sep 23, 2024
07b93e1
Fix media editing in topics.
john-preston Sep 30, 2024
d2f3d04
Update cmake/lib_base submodules.
john-preston Sep 30, 2024
91f5c72
Update User-Agent for DNS to Chrome 128.0.0.0.
actions-user Sep 1, 2024
a970fe9
Add reactions to export chat history (#28252)
BohdanTkachenko Sep 30, 2024
4582e61
Improved code style in newest code from export submodule.
23rd Sep 30, 2024
99c8edb
Fixed display of working hours in profiles.
23rd Sep 30, 2024
632639d
Allow custom tab action on all autocomplete fields.
john-preston Sep 30, 2024
86c0442
Add mention/hashtag autocomplete to GIF caption.
john-preston Sep 30, 2024
5743886
Respect the maximum quote length.
john-preston Sep 30, 2024
1ee53ee
Update User-Agent for DNS to Chrome 129.0.0.0.
actions-user Oct 1, 2024
e29c6d2
Fixed infinite attempts to draw foreground in userpic builder.
23rd Sep 30, 2024
b753448
Changed behavior for sponsored messages to display them only when ready.
23rd Sep 30, 2024
1db8ada
Slightly improved code style of history widget.
23rd Sep 30, 2024
9fdc099
Update lib_webview.
john-preston Oct 1, 2024
b518f7c
Beta version 5.5.7.
john-preston Oct 1, 2024
1cb92ef
Beta version 5.5.7: Workaround MSVC bug.
john-preston Oct 1, 2024
20f53c8
Fix poll bottom ripple.
john-preston Oct 1, 2024
677314d
Extract Data::MediaPreload.
john-preston Oct 2, 2024
d3df2dc
Use Data::MediaPreload in sponsored messages.
john-preston Oct 2, 2024
8d93eb9
Added verified badge to title in panel for web view bots.
23rd Oct 2, 2024
440ebfc
Removed display of userpic for sponsored messages.
23rd Oct 2, 2024
b60c7e9
Don't show full query in "nothing found" info.
john-preston Oct 3, 2024
7d67b3d
Use circle userpics in reactions from forums.
john-preston Oct 3, 2024
a8b0f29
Scroll quote selection in the draft options box.
john-preston Oct 3, 2024
15fcb73
Beta version 5.5.8.
john-preston Oct 3, 2024
335095a
Beta version 5.5.8: Fix build with Xcode.
john-preston Oct 3, 2024
e3bc4da
Update API scheme to layer 189.
john-preston Sep 16, 2024
761617c
Start UI of the new gift sending box.
john-preston Sep 6, 2024
4cdd1fe
Start UI of the gifts.
john-preston Sep 6, 2024
a5be0a6
Extract gift button into separate widget.
john-preston Sep 10, 2024
37f837d
Add sending gift preview.
john-preston Sep 10, 2024
46c8a55
Make nicer discount/limited gift badges.
john-preston Sep 10, 2024
71deef6
Add support for star gifts API.
john-preston Sep 16, 2024
0d0d0ab
Allow sending premium / star gifts.
john-preston Sep 17, 2024
1890441
Show chat and toast about sent gift.
john-preston Sep 19, 2024
efbd3ca
Implement star gift view box.
john-preston Sep 20, 2024
7a35577
Save/unsave gifts to the profile page.
john-preston Sep 20, 2024
215a262
Allow converting gifts to stars.
john-preston Sep 20, 2024
4803bd4
Started gifts list in profile.
john-preston Sep 20, 2024
79b1c0e
Support PeerData::isVerifyCodes() peer type.
john-preston Sep 20, 2024
52afd3d
Display gifts list in the profile.
john-preston Sep 20, 2024
c022a1c
Fix gifts list loading both ways.
john-preston Sep 24, 2024
1acdbb6
Show correct gift sender.
john-preston Sep 24, 2024
f9ee4dc
Show 'hidden from profile' icon in my gifts.
john-preston Sep 24, 2024
779e9b6
Update API scheme on layer 189.
john-preston Sep 24, 2024
962d4d2
Process gift updates in list.
john-preston Sep 24, 2024
39fb0a5
Remove custom PeerData::isVerifyCodes() userpic.
john-preston Sep 24, 2024
da49efa
Simple profile page for Verification Codes.
john-preston Sep 26, 2024
05fb0f8
Show gifts about text.
john-preston Sep 26, 2024
8b11d2d
Show nice star gift transactions in history.
john-preston Sep 26, 2024
9ace04d
Support entities in star gift messages.
john-preston Sep 26, 2024
a3ca8dd
Support entities in star gift message in box.
john-preston Sep 27, 2024
479b7c3
Add emoji selector to star gift sending.
john-preston Sep 27, 2024
0021562
Update API scheme on layer 189. Build broken.
john-preston Sep 24, 2024
3edf8e1
Added api support for reports with server options.
23rd Sep 26, 2024
3dc9352
Renamed report_box with report_box_graphics.
23rd Sep 26, 2024
c5139ed
Fix emoji panel position in star gift box.
john-preston Sep 27, 2024
3e63b40
Server-side star gift message length limit.
john-preston Sep 30, 2024
d361d5f
Move gift_credits_box -> star_gift_box, strip old code.
john-preston Sep 30, 2024
cf1d274
Return gift_credits_box with gifting stars.
john-preston Sep 30, 2024
42dd08a
Use a separate title for star gift recipient box.
john-preston Oct 2, 2024
0282786
Generalize gift sending.
john-preston Oct 2, 2024
ede771e
Focus gift message field.
john-preston Oct 2, 2024
e565acb
Added api support for stories reports with server options.
23rd Oct 5, 2024
7ca4ca2
Fixed middle elision in filenames from document views.
23rd Oct 3, 2024
8ac3c21
Removed redundant code from swipe-to-reply for macOS.
23rd Oct 3, 2024
649d242
Added userpic of web view bots to box of confirmation to open.
23rd Oct 3, 2024
9716a90
Added ability to cache credits balance by peer.
23rd Oct 3, 2024
d56f3cf
Added credits balance to profile section of owned bots.
23rd Oct 3, 2024
3cb0be5
Added administrators button to profile section of owned channels.
23rd Oct 4, 2024
a74c5a8
Added manage channel button to profile section of owned channels.
23rd Oct 4, 2024
df2b020
Add debug logs for recent/top peers resetting.
john-preston Oct 4, 2024
6a30967
Attempt to fix media viewer with OpenGL.
john-preston Oct 5, 2024
127e4a5
Attempt to fix screen dpi changes on Windows.
john-preston Oct 5, 2024
1f21af0
Version 5.6.
john-preston Oct 5, 2024
8310230
Version 5.6: Fix builds.
john-preston Oct 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Version **1.8.15** was the last that supports older systems
* QR Code generator ([MIT License](https://github.com/nayuki/QR-Code-generator#license))
* CMake ([New BSD License](https://github.com/Kitware/CMake/blob/master/Copyright.txt))
* Hunspell ([LGPL](https://github.com/hunspell/hunspell/blob/master/COPYING.LESSER))
* Ada ([Apache License 2.0](https://github.com/ada-url/ada/blob/main/LICENSE-APACHE))

## Build instructions

Expand Down
9 changes: 9 additions & 0 deletions Telegram/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ PRIVATE
boxes/sessions_box.h
boxes/share_box.cpp
boxes/share_box.h
boxes/star_gift_box.cpp
boxes/star_gift_box.h
boxes/sticker_set_box.cpp
boxes/sticker_set_box.h
boxes/stickers_box.cpp
Expand Down Expand Up @@ -569,6 +571,8 @@ PRIVATE
data/data_lastseen_status.h
data/data_location.cpp
data/data_location.h
data/data_media_preload.cpp
data/data_media_preload.h
data/data_media_rotation.cpp
data/data_media_rotation.h
data/data_media_types.cpp
Expand Down Expand Up @@ -604,6 +608,7 @@ PRIVATE
data/data_replies_list.h
data/data_reply_preview.cpp
data/data_reply_preview.h
data/data_report.h
data/data_saved_messages.cpp
data/data_saved_messages.h
data/data_saved_sublist.cpp
Expand Down Expand Up @@ -947,6 +952,10 @@ PRIVATE
info/media/info_media_widget.h
info/members/info_members_widget.cpp
info/members/info_members_widget.h
info/peer_gifts/info_peer_gifts_common.cpp
info/peer_gifts/info_peer_gifts_common.h
info/peer_gifts/info_peer_gifts_widget.cpp
info/peer_gifts/info_peer_gifts_widget.h
info/polls/info_polls_results_inner_widget.cpp
info/polls/info_polls_results_inner_widget.h
info/polls/info_polls_results_widget.cpp
Expand Down
Binary file modified Telegram/Resources/emoji/emoji_1.webp
Binary file not shown.
Binary file modified Telegram/Resources/emoji/emoji_2.webp
Binary file not shown.
Binary file modified Telegram/Resources/emoji/emoji_3.webp
Binary file not shown.
Binary file modified Telegram/Resources/emoji/emoji_4.webp
Binary file not shown.
Binary file modified Telegram/Resources/emoji/emoji_5.webp
Binary file not shown.
Binary file modified Telegram/Resources/emoji/emoji_6.webp
Binary file not shown.
Binary file modified Telegram/Resources/emoji/emoji_7.webp
Binary file not shown.
Binary file modified Telegram/Resources/emoji/emoji_8.webp
Binary file not shown.
52 changes: 52 additions & 0 deletions Telegram/Resources/export_html/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -582,3 +582,55 @@ div.toast_shown {
.bot_button_column_separator {
width: 2px
}

.reactions {
margin: 5px 0;
}

.reactions .reaction {
display: inline-flex;
height: 20px;
border-radius: 15px;
background-color: #e8f5fc;
color: #168acd;
font-weight: bold;
margin-bottom: 5px;
}

.reactions .reaction.active {
background-color: #40a6e2;
color: #fff;
}

.reactions .reaction.paid {
background-color: #fdf6e1;
color: #c58523;
}

.reactions .reaction.active.paid {
background-color: #ecae0a;
color: #fdf6e1;
}

.reactions .reaction .emoji {
line-height: 20px;
margin: 0 5px;
font-size: 15px;
}

.reactions .reaction .userpic:not(:first-child) {
margin-left: -8px;
}

.reactions .reaction .userpic {
display: inline-block;
}

.reactions .reaction .userpic .initials {
font-size: 8px;
}

.reactions .reaction .count {
margin-right: 8px;
line-height: 20px;
}
Binary file added Telegram/Resources/icons/inline_button_copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 76 additions & 2 deletions Telegram/Resources/langs/lang.strings
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_settings_alert_linux" = "Draw attention to the window";
"lng_settings_badge_title" = "Badge counter";
"lng_settings_include_muted" = "Include muted chats in unread count";
"lng_settings_include_muted_folders" = "Include muted chats in folder counters";
"lng_settings_count_unread" = "Count unread messages";
"lng_settings_events_title" = "Events";
"lng_settings_events_joined" = "Contact joined Telegram";
Expand Down Expand Up @@ -1322,6 +1323,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_profile_similar_channels#other" = "{count} similar channels";
"lng_profile_saved_messages#one" = "{count} saved message";
"lng_profile_saved_messages#other" = "{count} saved messages";
"lng_profile_peer_gifts#one" = "{count} gift";
"lng_profile_peer_gifts#other" = "{count} gifts";
"lng_profile_participants_section" = "Members";
"lng_profile_subscribers_section" = "Subscribers";
"lng_profile_add_contact" = "Add Contact";
Expand Down Expand Up @@ -1376,6 +1379,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_profile_copy_fullname" = "Copy Name";
"lng_profile_photo_by_you" = "photo set by you";
"lng_profile_public_photo" = "public photo";
"lng_profile_administrators#one" = "{count} administrator";
"lng_profile_administrators#other" = "{count} administrators";
"lng_profile_manage" = "Channel settings";

"lng_invite_upgrade_title" = "Upgrade to Premium";
"lng_invite_upgrade_group_invite#one" = "{users} only accepts invitations to groups from Contacts and **Premium** users.";
Expand Down Expand Up @@ -1659,6 +1665,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_report_and_ban_button" = "Ban user";
"lng_report_details_about" = "Please enter any additional details relevant to your report.";
"lng_report_details" = "Additional Details";
"lng_report_details_optional" = "Add Comment (Optional)";
"lng_report_details_non_optional" = "Add Comment";
"lng_report_details_message_about" = "Please help us by telling what is wrong with the message you have selected";
"lng_report_reason_spam" = "Spam";
"lng_report_reason_fake" = "Fake Account";
"lng_report_reason_violence" = "Violence";
Expand Down Expand Up @@ -1852,8 +1861,19 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_action_proximity_distance_km#other" = "{count} km";
"lng_action_webview_data_done" = "Data from the \"{text}\" button was transferred to the bot.";
"lng_action_gift_received" = "{user} sent you a gift for {cost}";
"lng_action_gift_received_me" = "You sent to {user} a gift for {cost}";
"lng_action_gift_sent" = "You sent a gift for {cost}";
"lng_action_gift_received_anonymous" = "Unknown user sent you a gift for {cost}";
"lng_action_gift_for_stars#one" = "{count} Star";
"lng_action_gift_for_stars#other" = "{count} Stars";
"lng_action_gift_got_subtitle" = "Gift from {user}";
"lng_action_gift_got_stars_text#one" = "Display this gift on your page or convert it to **{count}** Star.";
"lng_action_gift_got_stars_text#other" = "Display this gift on your page or convert it to **{count}** Stars.";
"lng_action_gift_sent_subtitle" = "Gift for {user}";
"lng_action_gift_sent_text#one" = "{user} can display this gift on their page or convert it to {count} Star.";
"lng_action_gift_sent_text#other" = "{user} can display this gift on their page or convert it to {count} Stars.";
"lng_action_gift_premium_months#one" = "{count} Month Premium";
"lng_action_gift_premium_months#other" = "{count} Months Premium";
"lng_action_gift_premium_about" = "Subscription for exclusive Telegram features.";
"lng_action_suggested_photo_me" = "You suggested this photo for {user}'s Telegram profile.";
"lng_action_suggested_photo" = "{user} suggests this photo for your Telegram profile.";
"lng_action_suggested_photo_button" = "View Photo";
Expand Down Expand Up @@ -1915,6 +1935,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_similar_channels_premium_all_link" = "Telegram Premium";
"lng_similar_channels_show_more" = "Show more channels";

"lng_peer_gifts_title" = "Gifts";
"lng_peer_gifts_about" = "These gifts were sent to {user} by other users.";
"lng_peer_gifts_about_mine" = "These gifts were sent to you by other users. Click on a gift to convert it to Stars or change its privacy settings.";

"lng_premium_gift_duration_months#one" = "for {count} month";
"lng_premium_gift_duration_months#other" = "for {count} months";
"lng_premium_gift_duration_years#one" = "for {count} year";
Expand Down Expand Up @@ -2415,6 +2439,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_credits_box_history_entry_gift_name" = "Received Gift";
"lng_credits_box_history_entry_giveaway_name" = "Received Prize";
"lng_credits_box_history_entry_gift_sent" = "Sent Gift";
"lng_credits_box_history_entry_gift_converted" = "Converted Gift";
"lng_credits_box_history_entry_gift_out_about" = "With Stars, **{user}** will be able to unlock content and services on Telegram.\n{link}";
"lng_credits_box_history_entry_gift_in_about" = "Use Stars to unlock content and services on Telegram. {link}";
"lng_credits_box_history_entry_gift_about_link" = "See Examples {emoji}";
Expand Down Expand Up @@ -2980,6 +3005,49 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_gift_stars_incoming" = "Use Stars to unlock content and services on Telegram.";
"lng_gift_until" = "Until";

"lng_gift_premium_or_stars" = "Gift Premium or Stars";
"lng_gift_premium_subtitle" = "Gift Premium";
"lng_gift_premium_about" = "Give {name} access to exclusive features with Telegram Premium. {features}";
"lng_gift_premium_features" = "See Features >";
"lng_gift_premium_label" = "Premium";
"lng_gift_stars_subtitle" = "Gift Stars";
"lng_gift_stars_about" = "Give {name} gifts that can be kept on your profile or converted to Stars. {link}";
"lng_gift_stars_link" = "What are Stars >";
"lng_gift_stars_limited" = "limited";
"lng_gift_stars_tabs_all" = "All Gifts";
"lng_gift_stars_tabs_limited" = "Limited";
"lng_gift_send_title" = "Send a Gift";
"lng_gift_send_message" = "Enter Message";
"lng_gift_send_anonymous" = "Hide My Name";
"lng_gift_send_anonymous_about" = "You can hide your name and message from visitors to {user}'s profile. {recipient} will still see your name and message.";
"lng_gift_send_premium_about" = "Only {user} will see your message.";
"lng_gift_send_button" = "Send a Gift for {cost}";
"lng_gift_sent_title" = "Gift Sent!";
"lng_gift_sent_about#one" = "You spent **{count}** Star from your balance.";
"lng_gift_sent_about#other" = "You spent **{count}** Stars from your balance.";
"lng_gift_limited_of_one" = "unique";
"lng_gift_limited_of_count" = "1 of {amount}";
"lng_gift_anonymous_hint" = "Only you can see the sender's name.";
"lng_gift_hidden_hint" = "This gift is hidden. Only you can see it.";
"lng_gift_visible_hint" = "This gift is visible to visitors of your page.";
"lng_gift_availability" = "Availability";
"lng_gift_from_hidden" = "Hidden User";
"lng_gift_availability_left#one" = "{count} of {amount} left";
"lng_gift_availability_left#other" = "{count} of {amount} left";
"lng_gift_availability_none" = "None of {amount} left";
"lng_gift_display_on_page" = "Display on my Page";
"lng_gift_display_on_page_hide" = "Hide from my Page";
"lng_gift_convert_to_stars#one" = "Convert to {count} Star";
"lng_gift_convert_to_stars#other" = "Convert to {count} Stars";
"lng_gift_convert_sure_title" = "Convert Gift to Stars";
"lng_gift_convert_sure_text#one" = "Do you want to convert this gift from {user} to **{count} Star**?\n\nThis action cannot be undone.";
"lng_gift_convert_sure_text#other" = "Do you want to convert this gift from {user} to **{count} Stars**?\n\nThis action cannot be undone.";
"lng_gift_convert_sure" = "Convert";
"lng_gift_display_done" = "The gift is now shown on your profile page.";
"lng_gift_display_done_hide" = "The gift is now hidden from your profile page.";
"lng_gift_got_stars#one" = "You got **{count} Star** for this gift.";
"lng_gift_got_stars#other" = "You got **{count} Stars** for this gift.";

"lng_accounts_limit_title" = "Limit Reached";
"lng_accounts_limit1#one" = "You have reached the limit of **{count}** connected account.";
"lng_accounts_limit1#other" = "You have reached the limit of **{count}** connected accounts.";
Expand Down Expand Up @@ -3222,6 +3290,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_replies_discussion_started" = "Discussion started";
"lng_replies_no_comments" = "No comments here yet...";

"lng_verification_codes" = "Verification Codes";

"lng_archived_name" = "Archived chats";
"lng_archived_add" = "Archive";
"lng_archived_remove" = "Unarchive";
Expand All @@ -3246,7 +3316,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_open_link" = "Open";
"lng_allow_bot_pass" = "Allow {bot_name} to pass your Telegram name and ID (not your phone number) to the web pages you open via this bot?";
"lng_allow_bot" = "Allow";
"lng_allow_bot_webview" = "{bot_name} would like to open its web app to proceed.\n\nIt will be able to access your **IP address** and basic device info.";
"lng_allow_bot_webview_details" = "More about this bot {emoji}";
"lng_allow_bot_webview_details_about" = "To launch this web app, you will connect to its website.\n\nIt will be able to access your **IP address** and basic device info.";
"lng_url_auth_open_confirm" = "Do you want to open {link}?";
"lng_url_auth_login_option" = "Log in to {domain} as {user}";
"lng_url_auth_allow_messages" = "Allow {bot} to send me messages";
Expand Down Expand Up @@ -3608,6 +3679,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_reply_header_short" = "Reply";
"lng_reply_quote_selected" = "Quote Selected";
"lng_reply_from_private_chat" = "This reply is from a private chat.";
"lng_reply_quote_long_title" = "Quote too long!";
"lng_reply_quote_long_text" = "The selected text is too long to quote.";
"lng_link_options_header" = "Link Preview Settings";
"lng_link_header_short" = "Link";
"lng_link_move_up" = "Move Up";
Expand Down Expand Up @@ -4233,6 +4306,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_rights_restriction_for_all" = "This option is disabled for all members in Group Permissions.";
"lng_rights_permission_for_all" = "This option is enabled for all members in Group Permissions.";
"lng_rights_permission_unavailable" = "This permission is not available in public groups.";
"lng_rights_permission_in_discuss" = "This permission is not available in discussion groups.";
"lng_rights_permission_cant_edit" = "You cannot change this permission.";
"lng_rights_user_restrictions" = "User permissions";
"lng_rights_user_restrictions_header" = "What can this member do?";
Expand Down
2 changes: 1 addition & 1 deletion Telegram/Resources/uwp/AppX/AppxManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity Name="TelegramMessengerLLP.TelegramDesktop"
ProcessorArchitecture="ARCHITECTURE"
Publisher="CN=536BC709-8EE1-4478-AF22-F0F0F26FF64A"
Version="5.5.5.0" />
Version="5.6.0.0" />
<Properties>
<DisplayName>Telegram Desktop</DisplayName>
<PublisherDisplayName>Telegram Messenger LLP</PublisherDisplayName>
Expand Down
8 changes: 4 additions & 4 deletions Telegram/Resources/winrc/Telegram.rc
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 5,5,5,0
PRODUCTVERSION 5,5,5,0
FILEVERSION 5,6,0,0
PRODUCTVERSION 5,6,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -62,10 +62,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop"
VALUE "FileVersion", "5.5.5.0"
VALUE "FileVersion", "5.6.0.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2024"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "5.5.5.0"
VALUE "ProductVersion", "5.6.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down
8 changes: 4 additions & 4 deletions Telegram/Resources/winrc/Updater.rc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 5,5,5,0
PRODUCTVERSION 5,5,5,0
FILEVERSION 5,6,0,0
PRODUCTVERSION 5,6,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -53,10 +53,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop Updater"
VALUE "FileVersion", "5.5.5.0"
VALUE "FileVersion", "5.6.0.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2024"
VALUE "ProductName", "Telegram Desktop"
VALUE "ProductVersion", "5.5.5.0"
VALUE "ProductVersion", "5.6.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down
13 changes: 12 additions & 1 deletion Telegram/SourceFiles/api/api_bot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ For license and copyright information please follow this link:
#include "ui/layers/generic_box.h"
#include "ui/text/text_utilities.h"

#include <QtGui/QGuiApplication>
#include <QtGui/QClipboard>

namespace Api {
namespace {

Expand Down Expand Up @@ -503,11 +506,19 @@ void ActivateBotCommand(ClickHandlerContext context, int row, int column) {
bot->session().attachWebView().open({
.bot = bot,
.context = { .controller = controller },
.button = {.text = button->text, .url = button->data },
.button = { .text = button->text, .url = button->data },
.source = InlineBots::WebViewSourceButton{ .simple = true },
});
}
} break;

case ButtonType::CopyText: {
const auto text = QString::fromUtf8(button->data);
if (!text.isEmpty()) {
QGuiApplication::clipboard()->setText(text);
controller->showToast(tr::lng_text_copied(tr::now));
}
} break;
}
}

Expand Down
1 change: 0 additions & 1 deletion Telegram/SourceFiles/api/api_chat_invite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ void ConfirmSubscriptionBox(
: 0;
state->api->request(
MTPpayments_SendStarsForm(
MTP_flags(0),
MTP_long(formId),
MTP_inputInvoiceChatInviteSubscription(MTP_string(hash)))
).done([=](const MTPpayments_PaymentResult &result) {
Expand Down
Loading
Loading