telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.14k stars 5.18k forks source link

Channel ID in profile #28508

Open BloodShadow174 opened 1 week ago

BloodShadow174 commented 1 week ago

Steps to reproduce

  1. Enable "Show Peer IDs in Profile" in Experimental options
  2. Open any channel's profile

Expected behaviour

id: -1001771275406

Actual behaviour

id: 1771275406

Operating system

Windows 10 Pro 22H2 19045.4894

Version of Telegram Desktop

5.6.1

Installation source

Static binary from official website

Crash ID

No response

Logs

[2024.10.09 13:15:16] Launched version: 5006001, install beta: [FALSE], alpha: 0, debug mode: [FALSE]
[2024.10.09 13:15:16] Executable dir: C:/Nova/Telegram/, name: Telegram.exe
[2024.10.09 13:15:16] Initial working dir: C:/Nova/Telegram/
[2024.10.09 13:15:16] Working dir: C:/Nova/Telegram/
[2024.10.09 13:15:16] Command line: C:\Nova\Telegram\Telegram.exe -autostart
[2024.10.09 13:15:16] Executable path before check: C:/Nova/Telegram/Telegram.exe
[2024.10.09 13:15:16] Logs started
[2024.10.09 13:15:16] AppUserModelID: Telegram.TelegramDesktop.7216eb2d93f2bf6229e5bde48c9edcd4
[2024.10.09 13:15:16] Using DirectX compiler 'C:\Nova\Telegram\modules\x86\d3d\d3dcompiler_47.dll'.
[2024.10.09 13:15:16] Connecting local socket to Global\b83dd85faf87c6e14037a625920deb45-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...
[2024.10.09 13:15:16] This is the only instance of Telegram, starting server and app...
[2024.10.09 13:15:16] Moved logging from 'C:/Nova/Telegram/log_start2.txt' to 'C:/Nova/Telegram/log.txt'!
[2024.10.09 13:15:16] Old start log 'log_start0.txt' found, deleted: [TRUE]
[2024.10.09 13:15:16] Old start log 'log_start1.txt' found, deleted: [TRUE]
[2024.10.09 13:15:16] Opened 'C:/Nova/Telegram/tdata/working' for reading, the previous Telegram Desktop launch was not finished properly :( Crash log size: 0
[2024.10.09 13:15:16] Global devicePixelRatio: 1
[2024.10.09 13:15:16] QT_DPI_ADJUSTMENT_POLICY: AdjustDpi
[2024.10.09 13:15:16] Primary screen DPI: 96, Base: 96.
[2024.10.09 13:15:16] Computed screen scale: 100
[2024.10.09 13:15:16] DevicePixelRatio: 1
[2024.10.09 13:15:16] ScreenScale: 100
[2024.10.09 13:15:17] Media Info: Type Playback, default: {0.0.0.00000000}.{cce15279-fcf9-402e-943a-78dbaeba48ea}, list: { "Digital Audio (HDMI) (High Definition Audio Device)" <{0.0.0.00000000}.{159c13e3-3d07-4a27-b6e9-e6961257a193}>, "Динамики (Realtek High Definition Audio)" <{0.0.0.00000000}.{cce15279-fcf9-402e-943a-78dbaeba48ea}> }, full list refresh: false
[2024.10.09 13:15:17] Media Info: Type Capture, default: {0.0.1.00000000}.{323526c0-eac8-4792-9efb-984508f9f4c0}, list: { "Внутренний разъем  AUX (High Definition Audio Device)" <{0.0.1.00000000}.{073f31d7-d165-4ae2-a99b-f6f00e6cb525}>, "Микрофон (Realtek High Definition Audio)" <{0.0.1.00000000}.{163be678-8f6c-46d6-8ac5-171b73efb936}>, "Микрофон (Realtek High Definition Audio)" <{0.0.1.00000000}.{323526c0-eac8-4792-9efb-984508f9f4c0}>, "Стерео микшер (Realtek High Definition Audio)" <{0.0.1.00000000}.{c3c2fc94-ba41-4323-8981-a6c1db778c22}> }, full list refresh: false
[2024.10.09 13:15:17] Media Info: Type Camera, default: \\?\usb#vid_2232&pid_1029&mi_00#7&115ed2a2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global, list: { "WebCam SC-13HDL11939N" <\\?\usb#vid_2232&pid_1029&mi_00#7&115ed2a2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global>, "OBS Virtual Camera" <OBS Virtual Camera> }, full list refresh: true
[2024.10.09 13:15:17] App Info: reading settings...
[2024.10.09 13:15:17] App Info: reading encrypted settings...
[2024.10.09 13:15:17] Lang Info: Loaded cached, keys: 7450
[2024.10.09 13:15:18] Font: from ':/gui/fonts/OpenSans-Regular.ttf' loaded 'Open Sans'
[2024.10.09 13:15:18] Font: from ':/gui/fonts/OpenSans-Italic.ttf' loaded 'Open Sans'
[2024.10.09 13:15:18] Font: from ':/gui/fonts/OpenSans-SemiBold.ttf' loaded 'Open Sans Semibold'
[2024.10.09 13:15:18] Font: from ':/gui/fonts/OpenSans-SemiBoldItalic.ttf' loaded 'Open Sans Semibold'
[2024.10.09 13:15:18] Font: from ':/gui/fonts/Vazirmatn-UI-NL-Regular.ttf' loaded 'Vazirmatn UI NL'
[2024.10.09 13:15:18] Font: from ':/gui/fonts/Vazirmatn-UI-NL-SemiBold.ttf' loaded 'Vazirmatn UI NL SemiBold'
[2024.10.09 13:15:20] OpenAL Logging Level: (not set)
[2024.10.09 13:15:21] App Info: reading accounts info...
[2024.10.09 13:15:21] App Info: bad decrypt key, data not decrypted - incorrect password?
[2024.10.09 13:15:21] App Info: could not decrypt pass-protected key from info file, maybe bad password...
[2024.10.09 13:15:23] OpenGL: Using custom 'gpu_driver_bug_list.json'.
[2024.10.09 13:15:24] OpenGL Profile: OpenGLES.
[2024.10.09 13:15:24] OpenGL Renderer: ANGLE (Intel, Intel(R) HD Graphics 3000 Direct3D11 vs_4_1 ps_4_1, D3D11-23.21.13.9135)
[2024.10.09 13:15:24] OpenGL Vendor: Google Inc. (Intel)
[2024.10.09 13:15:24] OpenGL Version: OpenGL ES 3.0.0 (ANGLE 2.1.10 git hash: e3f59e8d0c3e)
[2024.10.09 13:15:24] OpenGL Extensions: GL_EXT_draw_buffers, GL_ANGLE_program_cache_control, GL_ANGLE_robust_client_memory, GL_OES_compressed_ETC2_sRGB8_texture, GL_OES_texture_npot, GL_EXT_render_snorm, GL_OES_get_program_binary, GL_CHROMIUM_copy_texture, GL_EXT_instanced_arrays, GL_EXT_read_format_bgra, GL_EXT_base_instance, GL_NV_shader_noperspective_interpolation, GL_OES_texture_stencil8, GL_OES_depth24, GL_OES_surfaceless_context, GL_EXT_texture_format_BGRA8888, GL_EXT_multi_draw_indirect, GL_EXT_texture_norm16, GL_CHROMIUM_bind_generates_resource, GL_OES_texture_float_linear, GL_KHR_debug, GL_AMD_performance_monitor, GL_ANGLE_stencil_texturing, GL_OES_texture_half_float, GL_ANGLE_request_extension, GL_OES_texture_half_float_linear, GL_ANGLE_get_serialized_context_string, GL_ANGLE_memory_size, GL_EXT_debug_marker, GL_OES_compressed_ETC2_sRGB8_alpha8_texture, GL_ANGLE_copy_texture_3d, GL_OES_texture_border_clamp, GL_EXT_clip_cull_distance, , GL_OES_standard_derivatives, GL_OES_packed_depth_stencil, GL_EXT_disjoint_timer_query, GL_EXT_texture_rg, GL_OES_texture_float, GL_EXT_texture_storage, GL_WEBGL_video_texture, GL_EXT_texture_compression_dxt1, GL_OES_draw_buffers_indexed, GL_EXT_unpack_subimage, GL_OES_fbo_render_mipmap, GL_ANGLE_get_tex_level_parameter, GL_ANGLE_renderability_validation, GL_ANGLE_translated_shader_source, GL_EXT_texture_border_clamp, GL_EXT_texture_compression_s3tc_srgb, GL_OES_mapbuffer, GL_EXT_occlusion_query_boolean, GL_EXT_float_blend, GL_EXT_discard_framebuffer, GL_OES_draw_elements_base_vertex, GL_ANGLE_multi_draw, GL_EXT_depth_clamp, GL_EXT_texture_mirror_clamp_to_edge, GL_ANGLE_base_vertex_base_instance, GL_ANGLE_framebuffer_blit, GL_EXT_frag_depth, GL_EXT_texture_compression_rgtc, GL_NV_pack_subimage, GL_ANGLE_texture_compression_dxt3, GL_EXT_multisampled_render_to_texture, GL_NV_EGL_stream_consumer_external, GL_OES_element_index_uint, GL_CHROMIUM_sync_query, GL_EXT_blend_func_extended, GL_OES_compressed_ETC2_punchthroughA_RGBA8_texture, GL_EXT_debug_label, GL_EXT_robustness, GL_OES_EGL_image_external, GL_OES_depth32, GL_APPLE_clip_distance, GL_NV_pixel_buffer_object, GL_OES_compressed_EAC_R11_signed_texture, GL_ANGLE_clip_cull_distance, GL_ANGLE_polygon_mode, GL_CHROMIUM_bind_uniform_location, GL_EXT_draw_buffers_indexed, GL_OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture, GL_OES_vertex_array_object, GL_ANGLE_client_arrays, GL_EXT_polygon_offset_clamp, GL_ANGLE_lossy_etc_decode, GL_EXT_map_buffer_range, GL_EXT_draw_elements_base_vertex, GL_ANGLE_depth_texture, GL_EXT_texture_type_2_10_10_10_REV, GL_EXT_EGL_image_external_wrap_modes, GL_OES_EGL_image, GL_EXT_shader_texture_lod, GL_ANGLE_texture_multisample, GL_EXT_texture_filter_anisotropic, GL_OES_compressed_ETC2_RGBA8_texture, GL_NV_framebuffer_blit, GL_CHROMIUM_lose_context, GL_EXT_color_buffer_float, GL_EXT_clip_control, GL_ANGLE_texture_compression_dxt5, GL_KHR_parallel_shader_compile, GL_OES_compressed_EAC_R11_unsigned_texture, GL_OES_compressed_ETC2_RGB8_texture, GL_ANGLE_base_vertex_base_instance_shader_builtin, GL_ANGLE_pack_reverse_row_order, GL_ANGLE_texture_usage, GL_OES_compressed_EAC_RG11_unsigned_texture, GL_ANGLE_framebuffer_multisample, GL_EXT_color_buffer_half_float, GL_OES_EGL_image_external_essl3, GL_CHROMIUM_copy_compressed_texture, GL_OES_compressed_EAC_RG11_signed_texture, GL_OES_rgb8_rgba8, GL_NV_fence, GL_ANGLE_provoking_vertex, GL_EXT_sRGB, GL_ANGLE_instanced_arrays, GL_EXT_blend_minmax
[2024.10.09 13:15:24] EGL Extensions: EGL_EXT_create_context_robustness, EGL_ANGLE_d3d_share_handle_client_buffer, EGL_ANGLE_d3d_texture_client_buffer, EGL_ANGLE_surface_d3d_texture_2d_share_handle, EGL_ANGLE_query_surface_pointer, EGL_ANGLE_window_fixed_size, EGL_ANGLE_keyed_mutex, EGL_ANGLE_surface_orientation, EGL_ANGLE_direct_composition, EGL_ANGLE_windows_ui_composition, EGL_NV_post_sub_buffer, EGL_KHR_create_context, EGL_KHR_image, EGL_KHR_image_base, EGL_KHR_gl_texture_2D_image, EGL_KHR_gl_texture_cubemap_image, EGL_KHR_gl_renderbuffer_image, EGL_KHR_get_all_proc_addresses, EGL_KHR_stream, EGL_KHR_stream_consumer_gltexture, EGL_NV_stream_consumer_gltexture_yuv, EGL_ANGLE_stream_producer_d3d_texture, EGL_ANGLE_create_context_webgl_compatibility, EGL_CHROMIUM_create_context_bind_generates_resource, EGL_CHROMIUM_sync_control, EGL_EXT_pixel_format_float, EGL_KHR_surfaceless_context, EGL_ANGLE_display_texture_share_group, EGL_ANGLE_display_semaphore_share_group, EGL_ANGLE_create_context_client_arrays, EGL_ANGLE_program_cache_control, EGL_ANGLE_robust_resource_initialization, EGL_ANGLE_create_context_extensions_enabled, EGL_ANDROID_blob_cache, EGL_ANDROID_recordable, EGL_ANGLE_image_d3d11_texture, EGL_ANGLE_create_context_backwards_compatible, EGL_KHR_no_config_context, EGL_KHR_create_context_no_error, EGL_KHR_reusable_sync, 
[2024.10.09 13:15:24] OpenGL: QOpenGLContext created, version: 3.3.
[2024.10.09 13:15:24] OpenGL: [TRUE] (Window)
[2024.10.09 13:15:55] App Info: reading accounts info...
[2024.10.09 13:15:57] App Info: reading encrypted info...
[2024.10.09 13:15:57] App Info: reading map...
[2024.10.09 13:15:57] App Info: reading encrypted map...
[2024.10.09 13:15:57] App Info: reading encrypted user settings...
[2024.10.09 13:15:57] App Info: encrypted user settings read.
[2024.10.09 13:15:57] App Info: reading encrypted mtp data...
[2024.10.09 13:15:57] MTP Info: read keys, current: 5, to destroy: 0
[2024.10.09 13:15:57] Map read time: 74
[2024.10.09 13:15:57] App Info: reading encrypted mtp config...
[2024.10.09 13:15:57] App Info: reading map...
[2024.10.09 13:15:57] App Info: reading encrypted map...
[2024.10.09 13:15:57] App Info: reading encrypted user settings...
[2024.10.09 13:15:57] App Info: encrypted user settings read.
[2024.10.09 13:15:57] App Info: reading encrypted mtp data...
[2024.10.09 13:15:57] MTP Info: read keys, current: 5, to destroy: 0
[2024.10.09 13:15:57] Map read time: 14
[2024.10.09 13:15:57] App Info: reading encrypted mtp config...
[2024.10.09 13:15:57] App Info: reading map...
[2024.10.09 13:15:57] App Info: reading encrypted map...
[2024.10.09 13:15:57] App Info: reading encrypted user settings...
[2024.10.09 13:15:57] App Info: encrypted user settings read.
[2024.10.09 13:15:57] App Info: reading encrypted mtp data...
[2024.10.09 13:15:57] MTP Info: read keys, current: 5, to destroy: 0
[2024.10.09 13:15:57] Map read time: 17
[2024.10.09 13:15:57] App Info: reading encrypted mtp config...
[2024.10.09 13:15:57] App Info: reading map...
[2024.10.09 13:15:57] App Info: reading encrypted map...
[2024.10.09 13:15:57] App Info: reading encrypted user settings...
[2024.10.09 13:15:57] App Info: encrypted user settings read.
[2024.10.09 13:15:57] App Info: reading encrypted mtp data...
[2024.10.09 13:15:57] MTP Info: read keys, current: 5, to destroy: 0
[2024.10.09 13:15:57] Map read time: 24
[2024.10.09 13:15:57] App Info: reading encrypted mtp config...
[2024.10.09 13:15:58] Export Info: Destroy top bar by controller removal.
[2024.10.09 13:16:04] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:04] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:04] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:04] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:05] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:06] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:06] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:06] API Warning: not loaded minimal channel applied.
[2024.10.09 13:16:08] RPC Error: request 285 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2024.10.09 13:16:08] RPC Error: request 282 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2024.10.09 13:17:29] Export Info: Destroy top bar by controller removal.
[2024.10.09 13:17:43] BotWebView Error: Could not parse """".
[2024.10.09 13:17:43] BotWebView Error: Could not parse """".
[2024.10.09 13:17:44] BotWebView Error: Could not parse """".
[2024.10.09 13:18:20] Export Info: Destroy top bar by controller removal.
[2024.10.09 13:18:24] RPC Error: request 345 got fail with code 400, error WEBFILE_NOT_AVAILABLE
[2024.10.09 13:18:24] Skipping message, because it is already in blocks!
[2024.10.09 13:18:27] Audio Info: recreating audio device and reattaching the tracks
[2024.10.09 13:18:47] Audio Info: Closing audio playback device.
[2024.10.09 13:21:06] API Warning: not loaded minimal channel applied.
[2024.10.09 13:21:06] API Warning: not loaded minimal channel applied.
[2024.10.09 13:27:52] Skipping message, because it is already in blocks!
[2024.10.09 13:28:32] Skipping message, because it is already in blocks!
[2024.10.09 13:37:25] RPC Error: request 484 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 13:38:27] API Warning: not loaded minimal channel applied.
[2024.10.09 13:38:27] API Warning: not loaded minimal channel applied.
[2024.10.09 13:40:35] API Warning: not loaded minimal channel applied.
[2024.10.09 13:40:35] API Warning: not loaded minimal channel applied.
[2024.10.09 13:58:57] Skipping message, because it is already in blocks!
[2024.10.09 14:01:17] RPC Error: request 686 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:05:25] Audio Info: recreating audio device and reattaching the tracks
[2024.10.09 14:05:58] Audio Info: Closing audio playback device.
[2024.10.09 14:06:27] Skipping message, because it is already in blocks!
[2024.10.09 14:11:29] Skipping message, because it is already in blocks!
[2024.10.09 14:12:33] Skipping message, because it is already in blocks!
[2024.10.09 14:12:42] Skipping message, because it is already in blocks!
[2024.10.09 14:14:34] RPC Error: request 883 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:14:34] RPC Error: request 890 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:14:41] RPC Error: request 908 got fail with code 400, error USERNAME_INVALID
[2024.10.09 14:15:35] Skipping message, because it is already in blocks!
[2024.10.09 14:15:40] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:15:49] API Warning: not loaded minimal channel applied.
[2024.10.09 14:15:49] API Warning: not loaded minimal channel applied.
[2024.10.09 14:15:51] Skipping message, because it is already in blocks!
[2024.10.09 14:16:18] Skipping message, because it is already in blocks!
[2024.10.09 14:16:35] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:16:56] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:17:43] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:17:50] RPC Error: request 1053 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:19:05] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:19:07] Skipping message, because it is already in blocks!
[2024.10.09 14:20:03] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:20:08] Skipping message, because it is already in blocks!
[2024.10.09 14:21:21] Audio Info: recreating audio device and reattaching the tracks
[2024.10.09 14:21:41] Audio Info: Closing audio playback device.
[2024.10.09 14:21:43] Audio Info: recreating audio device and reattaching the tracks
[2024.10.09 14:21:54] Audio Info: Closing audio playback device.
[2024.10.09 14:22:06] RPC Error: request 1246 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:22:47] RPC Error: request 1262 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:23:50] RPC Error: request 1285 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:24:00] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:24:03] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:24:12] Skipping message, because it is already in blocks!
[2024.10.09 14:24:15] Audio Info: recreating audio device and reattaching the tracks
[2024.10.09 14:24:16] Audio Info: Closing audio playback device.
[2024.10.09 14:24:34] RPC Error: request 1315 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:24:51] RPC Error: request 1328 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:24:52] RPC Error: request 1334 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:32:05] RPC Error: request 1557 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:32:05] RPC Error: request 1570 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:32:08] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:32:11] RPC Error: request 1584 got fail with code 400, error PEER_ID_INVALID
[2024.10.09 14:32:11] API Warning: not loaded minimal channel applied.
[2024.10.09 14:32:11] API Warning: not loaded minimal channel applied.
[2024.10.09 14:32:11] API Warning: not loaded minimal channel applied.
[2024.10.09 14:32:11] API Warning: not loaded minimal channel applied.
[2024.10.09 14:32:11] API Warning: not loaded minimal channel applied.
[2024.10.09 14:32:21] RPC Error: request 1611 got fail with code 400, error USER_NOT_PARTICIPANT
[2024.10.09 14:34:55] Export Info: Destroy top bar by controller removal.
[2024.10.09 14:35:29] API Warning: not loaded minimal channel applied.
[2024.10.09 14:35:51] API Warning: not loaded minimal channel applied.
[2024.10.09 14:35:53] API Warning: not loaded minimal channel applied.
[2024.10.09 14:40:13] RPC Error: request 1774 got fail with code 400, error PEER_ID_INVALID
BloodShadow174 commented 1 week ago

I'm not quite sure if this is a bug, but the telegram bot displays the ID that starts with -100

Dimoka113 commented 6 days ago

I'm not entirely sure that this is an error, because "peer_id" is always specified without "-100" or "-x", because there are constructors for this (https://core.telegram.org/type/InputPeer)

But of course, as an improvement, I really would like groups to look like "-x" and supergroups to look like "-100x" It really would be more convenient.

Dimoka113 commented 6 days ago

image Another interesting point is why the ID is displayed as if it were a phone number? I find this strange.