Skip to content

Commit 2d36f70

Browse files
committed
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop into upstream
2 parents 6005a75 + 6c0ea0e commit 2d36f70

File tree

337 files changed

+14983
-4053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+14983
-4053
lines changed

.github/workflows/linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
cd $REPO_NAME/out/Debug
118118
sudo mkdir artifact
119119
sudo mv {Telegram,Updater} artifact/
120-
- uses: actions/upload-artifact@v2
120+
- uses: actions/upload-artifact@v4
121121
if: env.UPLOAD_ARTIFACT == 'true'
122122
name: Upload artifact.
123123
with:

.github/workflows/mac.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
mkdir artifact
136136
mv rabbitGram.app artifact/
137137
mv Updater artifact/
138-
- uses: actions/upload-artifact@v2
138+
- uses: actions/upload-artifact@v4
139139
if: env.UPLOAD_ARTIFACT == 'true'
140140
name: Upload artifact.
141141
with:

.github/workflows/mac_packaged.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
cd $REPO_NAME/build
154154
mkdir artifact
155155
mv Telegram.dmg artifact/
156-
- uses: actions/upload-artifact@v2
156+
- uses: actions/upload-artifact@v4
157157
if: env.UPLOAD_ARTIFACT == 'true'
158158
name: Upload artifact.
159159
with:

.github/workflows/snap.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
mkdir artifact
7777
mv $artifact_name artifact
7878
79-
- uses: actions/upload-artifact@v2
79+
- uses: actions/upload-artifact@v4
8080
if: env.UPLOAD_ARTIFACT == 'true'
8181
name: Upload artifact.
8282
with:

.github/workflows/win.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
mkdir artifact
182182
move %OUT%\rabbitGram.exe artifact/
183183
move %OUT%\Updater.exe artifact/
184-
- uses: actions/upload-artifact@v2
184+
- uses: actions/upload-artifact@v4
185185
name: Upload artifact.
186186
if: (env.UPLOAD_ARTIFACT == 'true') || (github.ref == 'refs/heads/nightly')
187187
with:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Release/
2020
*.xcodeproj
2121
ipch/
2222
.vs/
23+
.vscode/
2324

2425
/Telegram/log.txt
2526
/Telegram/data

Telegram/CMakeLists.txt

+26-2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ PRIVATE
120120
api/api_common.h
121121
api/api_confirm_phone.cpp
122122
api/api_confirm_phone.h
123+
api/api_credits.cpp
124+
api/api_credits.h
123125
api/api_earn.cpp
124126
api/api_earn.h
125127
api/api_editing.cpp
@@ -299,6 +301,8 @@ PRIVATE
299301
boxes/ringtones_box.h
300302
boxes/self_destruction_box.cpp
301303
boxes/self_destruction_box.h
304+
boxes/send_credits_box.cpp
305+
boxes/send_credits_box.h
302306
boxes/send_files_box.cpp
303307
boxes/send_files_box.h
304308
boxes/sessions_box.cpp
@@ -441,6 +445,8 @@ PRIVATE
441445
core/launcher.h
442446
core/local_url_handlers.cpp
443447
core/local_url_handlers.h
448+
core/phone_click_handler.cpp
449+
core/phone_click_handler.h
444450
core/sandbox.cpp
445451
core/sandbox.h
446452
core/shortcuts.cpp
@@ -462,6 +468,8 @@ PRIVATE
462468
data/business/data_business_info.h
463469
data/business/data_shortcut_messages.cpp
464470
data/business/data_shortcut_messages.h
471+
data/components/factchecks.cpp
472+
data/components/factchecks.h
465473
data/components/recent_peers.cpp
466474
data/components/recent_peers.h
467475
data/components/scheduled_messages.cpp
@@ -539,6 +547,8 @@ PRIVATE
539547
data/data_groups.h
540548
data/data_histories.cpp
541549
data/data_histories.h
550+
data/data_history_messages.cpp
551+
data/data_history_messages.h
542552
data/data_lastseen_status.h
543553
data/data_location.cpp
544554
data/data_location.h
@@ -781,6 +791,8 @@ PRIVATE
781791
history/view/history_view_about_view.h
782792
history/view/history_view_bottom_info.cpp
783793
history/view/history_view_bottom_info.h
794+
history/view/history_view_chat_preview.cpp
795+
history/view/history_view_chat_preview.h
784796
history/view/history_view_contact_status.cpp
785797
history/view/history_view_contact_status.h
786798
history/view/history_view_context_menu.cpp
@@ -795,6 +807,8 @@ PRIVATE
795807
history/view/history_view_emoji_interactions.h
796808
history/view/history_view_empty_list_bubble.cpp
797809
history/view/history_view_empty_list_bubble.h
810+
history/view/history_view_fake_items.cpp
811+
history/view/history_view_fake_items.h
798812
history/view/history_view_group_call_bar.cpp
799813
history/view/history_view_group_call_bar.h
800814
history/view/history_view_item_preview.h
@@ -825,14 +839,14 @@ PRIVATE
825839
history/view/history_view_send_action.h
826840
history/view/history_view_service_message.cpp
827841
history/view/history_view_service_message.h
828-
history/view/history_view_spoiler_click_handler.cpp
829-
history/view/history_view_spoiler_click_handler.h
830842
history/view/history_view_sponsored_click_handler.cpp
831843
history/view/history_view_sponsored_click_handler.h
832844
history/view/history_view_sticker_toast.cpp
833845
history/view/history_view_sticker_toast.h
834846
history/view/history_view_sublist_section.cpp
835847
history/view/history_view_sublist_section.h
848+
history/view/history_view_text_helper.cpp
849+
history/view/history_view_text_helper.h
836850
history/view/history_view_transcribe_button.cpp
837851
history/view/history_view_transcribe_button.h
838852
history/view/history_view_translate_bar.cpp
@@ -1209,6 +1223,8 @@ PRIVATE
12091223
payments/payments_checkout_process.h
12101224
payments/payments_form.cpp
12111225
payments/payments_form.h
1226+
payments/payments_non_panel_process.cpp
1227+
payments/payments_non_panel_process.h
12121228
platform/linux/file_utilities_linux.cpp
12131229
platform/linux/file_utilities_linux.h
12141230
platform/linux/launcher_linux.cpp
@@ -1373,6 +1389,10 @@ PRIVATE
13731389
settings/settings_codes.h
13741390
settings/settings_common_session.cpp
13751391
settings/settings_common_session.h
1392+
settings/settings_credits.cpp
1393+
settings/settings_credits.h
1394+
settings/settings_credits_graphics.cpp
1395+
settings/settings_credits_graphics.h
13761396
settings/settings_experimental.cpp
13771397
settings/settings_experimental.h
13781398
settings/settings_folders.cpp
@@ -1468,6 +1488,8 @@ PRIVATE
14681488
ui/controls/silent_toggle.h
14691489
ui/controls/userpic_button.cpp
14701490
ui/controls/userpic_button.h
1491+
ui/effects/credits_graphics.cpp
1492+
ui/effects/credits_graphics.h
14711493
ui/effects/emoji_fly_animation.cpp
14721494
ui/effects/emoji_fly_animation.h
14731495
ui/effects/message_sending_animation_common.h
@@ -1515,6 +1537,8 @@ PRIVATE
15151537
window/section_widget.h
15161538
window/window_adaptive.cpp
15171539
window/window_adaptive.h
1540+
window/window_chat_preview.cpp
1541+
window/window_chat_preview.h
15181542
window/window_connecting_widget.cpp
15191543
window/window_connecting_widget.h
15201544
window/window_controller.cpp
766 Bytes
Loading
1.63 KB
Loading
2.43 KB
Loading
588 Bytes
Loading
1.33 KB
Loading
2.21 KB
Loading

Telegram/Resources/langs/lang.strings

+95
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
251251
"lng_caption_limit2#other" = "Make the caption shorter or subscribe to **Telegram Premium** to double the limit to **{count}** characters.";
252252
"lng_caption_limit_reached#one" = "You've reached the media caption limit. Please make the caption shorter by {count} character.";
253253
"lng_caption_limit_reached#other" = "You've reached the media caption limit. Please make the caption shorter by {count} characters.";
254+
"lng_caption_move_up" = "Move Caption Up";
255+
"lng_caption_move_down" = "Move Caption Down";
254256

255257
"lng_file_size_limit_title" = "File Too Large";
256258
"lng_file_size_limit#one" = "{count} Gb";
@@ -302,6 +304,13 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
302304
"lng_sure_ban_admin" = "This user is an admin. Are you sure you want to go ahead and restrict them?";
303305
"lng_sure_enable_socks" = "Are you sure you want to enable this proxy?\n\nServer: {server}\nPort: {port}\n\nYou can change your proxy server later in the Settings (Connection Type).";
304306
"lng_sure_enable" = "Enable";
307+
"lng_proxy_box_title" = "Enable proxy";
308+
"lng_proxy_box_server" = "Server";
309+
"lng_proxy_box_port" = "Port";
310+
"lng_proxy_box_secret" = "Secret";
311+
"lng_proxy_box_status" = "Status";
312+
"lng_proxy_box_username" = "Username";
313+
"lng_proxy_box_password" = "Password";
305314
"lng_proxy_invalid" = "The proxy link is invalid.";
306315
"lng_proxy_unsupported" = "Your rabbitGram Desktop version doesn't support this proxy type or the proxy link is invalid. Please update rabbitGram Desktop to the latest version.";
307316

@@ -561,6 +570,13 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
561570
"lng_reaction_invoice" = "{reaction} to your invoice";
562571
"lng_reaction_gif" = "{reaction} to your GIF";
563572

573+
"lng_effect_add_title" = "Add an animated effect";
574+
"lng_effect_stickers_title" = "Effects from stickers";
575+
"lng_effect_send" = "Send with Effect";
576+
"lng_effect_none" = "No effects found.";
577+
"lng_effect_premium" = "Subscribe to {link} to add this animated effect.";
578+
"lng_effect_premium_link" = "Telegram Premium";
579+
564580
"lng_languages" = "Languages";
565581
"lng_languages_none" = "No languages found.";
566582
"lng_languages_count#one" = "{count} language";
@@ -769,6 +785,7 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
769785
"lng_settings_power_chat" = "Animations in Chats";
770786
"lng_settings_power_chat_background" = "Background rotation";
771787
"lng_settings_power_chat_spoiler" = "Animated spoiler effect";
788+
"lng_settings_power_chat_effects" = "Effects in messages";
772789
"lng_settings_power_calls" = "Animations in Calls";
773790
"lng_settings_power_ui" = "Interface animations";
774791
"lng_settings_power_auto" = "Save Power on Low Battery";
@@ -1053,6 +1070,10 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
10531070
"lng_proxy_sponsor" = "Proxy sponsor";
10541071
"lng_proxy_sponsor_about" = "This channel is shown by your proxy server.\nTo remove this channel from your chats list,\ndisable the proxy in Telegram Settings.";
10551072
"lng_proxy_sponsor_warning" = "This proxy may display a sponsored channel in your chat list. This doesn't reveal any of your Telegram traffic.";
1073+
"lng_proxy_add_from_clipboard" = "Add proxy from clipboard";
1074+
"lng_proxy_add_from_clipboard_good_toast" = "Proxy was added from clipboard.";
1075+
"lng_proxy_add_from_clipboard_failed_toast" = "This is not a proxy link.";
1076+
"lng_proxy_add_from_clipboard_existing_toast" = "This proxy is already in the list.";
10561077
"lng_badge_psa_default" = "PSA";
10571078
"lng_about_psa_default" = "This message provides you with a public service announcement. To remove it from your chats list, right click it and select **Hide**.";
10581079
"lng_tooltip_psa_default" = "This message provides you with a public service announcement.";
@@ -1522,8 +1543,10 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
15221543
"lng_manage_peer_link_invite" = "Invite link";
15231544
"lng_manage_peer_link_expired" = "Expired link";
15241545
"lng_manage_private_group_title" = "Private";
1546+
"lng_manage_private_group_noforwards_title" = "Private restricted";
15251547
"lng_manage_public_group_title" = "Public";
15261548
"lng_manage_private_peer_title" = "Private";
1549+
"lng_manage_private_peer_noforwards_title" = "Private restricted";
15271550
"lng_manage_public_peer_title" = "Public";
15281551
"lng_manage_peer_send_title" = "Who can send new messages?";
15291552
"lng_manage_peer_send_only_members" = "Only members";
@@ -2285,6 +2308,39 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
22852308
"lng_business_about_sponsored_link" = "Telegram Ad Platform {emoji}";
22862309
"lng_business_about_sponsored_url" = "https://ads.telegram.org";
22872310

2311+
"lng_credits_summary_title" = "Telegram Stars";
2312+
"lng_credits_summary_about" = "Buy Stars to unlock content and services in miniapps on Telegram.";
2313+
"lng_credits_summary_options_subtitle" = "Choose package";
2314+
"lng_credits_summary_options_credits#one" = "{count} Star";
2315+
"lng_credits_summary_options_credits#other" = "{count} Stars";
2316+
"lng_credits_summary_options_more" = "More Options";
2317+
"lng_credits_summary_options_about" = "By proceeding and purchasing Stars, you agree with the {link}.";
2318+
"lng_credits_summary_options_about_link" = "Terms and Conditions";
2319+
"lng_credits_summary_options_about_url" = "https://telegram.org/tos/stars";
2320+
"lng_credits_summary_history_tab_full" = "All Transactions";
2321+
"lng_credits_summary_history_tab_in" = "Incoming";
2322+
"lng_credits_summary_history_tab_out" = "Outgoing";
2323+
"lng_credits_summary_history_entry_inner_in" = "In-App Purchase";
2324+
"lng_credits_summary_balance" = "Balance";
2325+
"lng_credits_box_out_title" = "Confirm Your Purchase";
2326+
"lng_credits_box_out_sure#one" = "Do you want to buy **\"{text}\"** in **{bot}** for **{count} Star**?";
2327+
"lng_credits_box_out_sure#other" = "Do you want to buy **\"{text}\"** in **{bot}** for **{count} Stars**?";
2328+
"lng_credits_box_out_confirm#one" = "Confirm and Pay {emoji} {count} Star";
2329+
"lng_credits_box_out_confirm#other" = "Confirm and Pay {emoji} {count} Stars";
2330+
"lng_credits_box_out_about" = "Review the {link} for Stars.";
2331+
"lng_credits_summary_in_toast_title" = "Stars Acquired";
2332+
"lng_credits_summary_in_toast_about#one" = "**{count}** Star added to your balance.";
2333+
"lng_credits_summary_in_toast_about#other" = "**{count}** Stars added to your balance.";
2334+
"lng_credits_box_history_entry_peer" = "Recipient";
2335+
"lng_credits_box_history_entry_id" = "Transaction ID";
2336+
"lng_credits_box_history_entry_id_copied" = "Transaction ID copied to clipboard.";
2337+
"lng_credits_box_history_entry_about" = "You can dispute this transaction {link}.";
2338+
"lng_credits_box_history_entry_about_link" = "here";
2339+
"lng_credits_small_balance_title#one" = "{count} Star Needed";
2340+
"lng_credits_small_balance_title#other" = "{count} Stars Needed";
2341+
"lng_credits_small_balance_about" = "Buy **Stars** and use them on **{bot}** and other miniapps.";
2342+
"lng_credits_purchase_blocked" = "Sorry, you can't purchase this item with Telegram Stars.";
2343+
22882344
"lng_location_title" = "Location";
22892345
"lng_location_about" = "Display the location of your business on your account.";
22902346
"lng_location_address" = "Enter Address";
@@ -3177,6 +3233,8 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
31773233
"lng_context_reply_msg" = "Reply";
31783234
"lng_context_quote_and_reply" = "Quote & Reply";
31793235
"lng_context_edit_msg" = "Edit";
3236+
"lng_context_add_factcheck" = "Add Fact Check";
3237+
"lng_context_edit_factcheck" = "Edit Fact Check";
31803238
"lng_context_forward_msg" = "Forward Message";
31813239
"lng_context_send_now_msg" = "Send now";
31823240
"lng_context_reschedule" = "Reschedule";
@@ -3248,6 +3306,16 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
32483306
"lng_context_spoiler_effect" = "Hide with Spoiler";
32493307
"lng_context_disable_spoiler" = "Remove Spoiler";
32503308

3309+
"lng_factcheck_title" = "Fact Check";
3310+
"lng_factcheck_placeholder" = "Add Facts or Context";
3311+
"lng_factcheck_whats_this" = "what's this?";
3312+
"lng_factcheck_about" = "This clarification was provided by a fact checking agency assigned by the department of the government of your country ({country}) responsible for combatting misinformation.";
3313+
"lng_factcheck_add_done" = "Fact check added.";
3314+
"lng_factcheck_edit_done" = "Fact check edited.";
3315+
"lng_factcheck_remove_done" = "Fact check removed.";
3316+
"lng_factcheck_bottom" = "This clarification was provided by a fact checking agency assigned by the department of the government of your country ({country}) responsible for combatting misinformation.";
3317+
"lng_factcheck_links" = "Only **t.me/** links are allowed.";
3318+
32513319
"lng_translate_show_original" = "Show Original";
32523320
"lng_translate_bar_to" = "Translate to {name}";
32533321
"lng_translate_bar_to_other" = "Translate to {name}";
@@ -3368,6 +3436,7 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
33683436
"lng_add_contact" = "Create";
33693437
"lng_add_contact_button" = "New contact";
33703438
"lng_contacts_header" = "Contacts";
3439+
"lng_menu_not_contact" = "This number is not on Telegram";
33713440
"lng_contacts_hidden_stories" = "Hidden Stories";
33723441
"lng_contacts_stories_status#one" = "{count} story";
33733442
"lng_contacts_stories_status#other" = "{count} stories";
@@ -5161,6 +5230,32 @@ https://github.com/rabbitgramdesktop/rabbitgramdesktop/blob/dev/LEGAL
51615230
"lng_font_system" = "System font";
51625231
"lng_font_not_found" = "Font not found.";
51635232

5233+
"lng_search_tab_my_messages" = "My Messages";
5234+
"lng_search_tab_this_topic" = "This Topic";
5235+
"lng_search_tab_this_chat" = "This Chat";
5236+
"lng_search_tab_this_channel" = "This Channel";
5237+
"lng_search_tab_this_group" = "This Group";
5238+
"lng_search_tab_public_posts" = "Public Posts";
5239+
"lng_search_tab_no_results" = "No Results";
5240+
"lng_search_tab_no_results_text" = "There were no results for \"{query}\".";
5241+
"lng_search_tab_no_results_retry" = "Try another hashtag.";
5242+
"lng_search_tab_by_hashtag" = "Enter a hashtag to find messages containing it.";
5243+
5244+
"lng_contact_details_button" = "View Contact";
5245+
"lng_contact_details_title" = "Contact details";
5246+
"lng_contact_details_phone" = "Phone";
5247+
"lng_contact_details_phone_main" = "Main Phone";
5248+
"lng_contact_details_phone_home" = "Home Phone";
5249+
"lng_contact_details_phone_mobile" = "Mobile Phone";
5250+
"lng_contact_details_phone_work" = "Work Phone";
5251+
"lng_contact_details_phone_other" = "Other Phone";
5252+
"lng_contact_details_email" = "Email";
5253+
"lng_contact_details_address" = "Address";
5254+
"lng_contact_details_url" = "URL";
5255+
"lng_contact_details_note" = "Note";
5256+
"lng_contact_details_birthday" = "Birthday";
5257+
"lng_contact_details_organization" = "Organization";
5258+
51645259
// Wnd specific
51655260

51665261
"lng_wnd_choose_program_menu" = "Choose Default Program...";

Telegram/Resources/uwp/AppX/AppxManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Identity Name="TelegramMessengerLLP.TelegramDesktop"
1111
ProcessorArchitecture="ARCHITECTURE"
1212
Publisher="CN=536BC709-8EE1-4478-AF22-F0F0F26FF64A"
13-
Version="5.0.1.0" />
13+
Version="5.1.5.0" />
1414
<Properties>
1515
<DisplayName>rabbitGram Desktop</DisplayName>
1616
<PublisherDisplayName>xmdnx</PublisherDisplayName>

Telegram/Resources/winrc/Telegram.rc

+11-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
4444
//
4545

4646
VS_VERSION_INFO VERSIONINFO
47-
FILEVERSION 5,0,1,0
48-
PRODUCTVERSION 5,0,1,0
47+
FILEVERSION 5,1,5,0
48+
PRODUCTVERSION 5,1,5,0
4949
FILEFLAGSMASK 0x3fL
5050
#ifdef _DEBUG
5151
FILEFLAGS 0x1L
@@ -60,12 +60,21 @@ BEGIN
6060
BEGIN
6161
BLOCK "040904b0"
6262
BEGIN
63+
<<<<<<< HEAD
6364
VALUE "CompanyName", "xmdnx"
6465
VALUE "FileDescription", "rabbitGram Desktop"
6566
VALUE "FileVersion", "5.0.1.0"
6667
VALUE "LegalCopyright", "Copyright (C) 2023-2024"
6768
VALUE "ProductName", "rabbitGram Desktop"
6869
VALUE "ProductVersion", "5.0.1.0"
70+
=======
71+
VALUE "CompanyName", "Telegram FZ-LLC"
72+
VALUE "FileDescription", "Telegram Desktop"
73+
VALUE "FileVersion", "5.1.5.0"
74+
VALUE "LegalCopyright", "Copyright (C) 2014-2024"
75+
VALUE "ProductName", "Telegram Desktop"
76+
VALUE "ProductVersion", "5.1.5.0"
77+
>>>>>>> 6c0ea0eb9f666fce471ed32efe0e83d9c62aba48
6978
END
7079
END
7180
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)