morethanwords / tweb Goto Github PK
View Code? Open in Web Editor NEWTelegram Web K, GPL v3
Home Page: https://web.telegram.org/k/
License: GNU General Public License v3.0
Telegram Web K, GPL v3
Home Page: https://web.telegram.org/k/
License: GNU General Public License v3.0
What is the relationship between ApiManagerProxy
and ApiManager
?
Hebrew, Arabic, Persian, Urdu and several others use scripts written from right to left.
This is a blog post about adjusting Spotify to support these languages:
https://engineering.atspotify.com/2019/04/15/right-to-left-the-mirror-world/
I will start testing it myself and see if I can contribute without breaking the UI completely.
Currently the most important thing is to add dir=auto
to the input boxes so typing in these languages will be more coherent.
Thank you.
Describe the bug
When trying to check folder tab with several chats it's loading forever
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Loading chat folders normally
Screenshots
Desktop (please complete the following information):
Additional context
You can also see the bug report here: https://bugs.telegram.org/c/10550
Describe the bug
I use old Chromium version (73.0.3683.75), because this is latest Chromium version available in my debian release (stretch).
Recently (1-2 days ago) web telegram K stopped to work in this version.
To Reproduce
Open Chromium 73.0.3683.75 (in debian stretch).
Open web.telegram.org/k (I already logged in).
Expected behavior
Normal working web client
What I see
I see nearly empty page instead: two empty panels.
And the following message in console:
Uncaught (in promise) TypeError: Failed to execute 'setActionHandler' on 'MediaSession': The provided value 'stop' is not a valid enum value of type MediaSessionAction.
at new <anonymous> (appMediaPlaybackController.ts:74)
at Module.137 (appMediaPlaybackController.ts:485)
at a (bootstrap:63)
Desktop (please complete the following information):
Is your feature request related to a problem? Please describe.
https://www.loom.com/share/9fe30ae2ba96453dbaf9020be34f9c03
Describe the solution you'd like
add z-index to range
Additional context
Problem with styles in volume progress. Just add z-index to class
Is your feature request related to a problem? Please describe.
I cannot add people to contacts if I don't know their phone number. This is possible to do in other clients (e.g. Android client).
Describe the solution you'd like
Make it possible to add anyone to contacts if I open their profile (e.g. they send a message to me, or I can see their message in a group, etc.)
Describe alternatives you've considered
A fix for #45 added a way to add contacts by phone number. This doesn't work if you don't know the phone number.
Additional context
Currently, when viewing a profile of someone who is in the contacts, there is an "edit contact" button. When viewing a profile of someone who is not in the contacts, this button is hidden using display: none
. It is possible to unhide this button using developer tools, and then use it to add this person to contacts (click it, make some changes and save). This feature request is to make it possible to do the same without resorting to hacks.
Describe the bug
Typing in :D at the end of the message and hitting results in dress being added to a post.
:D is a very common emoji and having it change to a dress by default makes no sense.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Message should be sent with a broad smile
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Describe the bug
To exit all open chats, the Escape key on an external keyboard can be used on Windows in Chrome, but it doesn't respond / do anything in CloudReady (Chromium OS) 94.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To exit the currently open chat and return to the initial view, like shown below.
Desktop (please complete the following information):
Describe the bug
When click in shared phone number, the site crash and "split" the screen
To Reproduce
Steps to reproduce the behavior:
Click on some shared phone number
See error
Expected behavior
Tbh idk
Desktop (please complete the following information):
Describe the bug
Currently my telegram account is limited. I. e. I wrote people annoying messages, and they somehow reported that they see my behavior as wrong. So, now I am unable to send messages to strangers.
Unfortunately, web client K unable to correctly show this status. When I try to send a message to a stranger, I simply see clock icon near my message and nothing else. I. e. the client shows the message as "in progress". And no any kind of error message.
Compare this with "old" web client. If I send a message using old client, I see clear error message: "Sorry, you can only send messages to mutual contacts at the moment. More info »"
I can send screenshots if you want.
I use old chromium version 73.0.3683.75.
Desktop (please complete the following information):
Describe the bug
I use groups a lot and when I leave the chat selected and use another tab and when I go back to the tab I lose the last message seen, I need to go up the chat every time to view the last message I viewed.
Desktop (please complete the following information):
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm little bit confused with codebase of telegram k. I Tried to learn it for about 3-4 days and it's really hard. All app like a big heap. Maybe i'm not so good in development, but it's really hard to understand this code. Usage of vanilla js with custom event listeners (rootScope), custom state managment, storages, a lot of promises, async logic and workers. And it's all in very long classes (1k-5k lines of code only for one class). It's unreal to keep in mind all this logic.
I'm not sure about simplicity of code maintaining. Maybe for Telegram contest it's okay but in the long term this raises questions. Most likely, new feature will lead more logic and more lines of code. And if you tried to not use React only because it take some KB of loading data, some future basic new features will inflate the codebase.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Global refactor of codebase
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
In ideal world - use just simple React. Vanilla is not the best choice for interfaces with big logic.
Describe the bug
Send by enter dont work with caption
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Send the message
Desktop (please complete the following information):
Describe the bug
I can't use RIME IME to type Chinese(CJK) words.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should type CJK words by using RIME IME.
Desktop (please complete the following information):
Additional context
The WebK version is alpha 0.8.5
Describe the bug
When typing emoji sequences such as :joy:
😂 or :sweat_smile:
😅, the emoji popover disappears as soon as the final :
is typed, making it impossible to select 😂 without mouse input (pressing enter at :joy
creates :joystick:
🕹️).
To Reproduce
Steps to reproduce the behavior:
:joy
:
, text is now :joy:
Expected behavior
The popover should still be visible directly after the final :
is typed so an exactly named emoji can be inserted.
Screenshots
Desktop (please complete the following information):
Describe the bug
Messages in the currently open chat are marked as read even when the tab is not in focus. This means that also no notifications sounds are produced for the messages, since the client thinks the user has read them. The bug can be worked around by selecting a chat where no messages are expected (e.g. Saved Messages) since messages from other non-active chats still cause notifications.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Messages should not be marked as read and notifications should occur when the tab is not active
Screenshots
Not applicable
Desktop (please complete the following information):
The session expire in private mode when tab close
Describe the bug
In Google Chrome (and when installed as a PWA) the right-click context menu of messages in a conversation is overlapped by the browser context-menu. Therefore it is often not usable, which takes the only option to reply to a message.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The expected behaviour would be that the browser context menu doesn't show up at all. Probably the event is still further propagated. event.stopPropagation()
or similar could fix it, but I haven't looked into the details of the code yet.
Desktop:
Describe the bug
History conversation is not kept when transform to a supergroup.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Previous normal group and supergroup message should be merged as it is on Desktop or Mobile. This whenever I delete cache or application. (New fresh desktop install was able to merge both history)
Desktop :
Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce
go in private chat or group where there is a voice note
play the voice note and send a voice note, the audio of the voice note played will not be blocked
Expected behaviour
when a previous voice note is produced and I am sending a new voice note, I expect the old voice note to stop playing
Actual behaviour
play the voice note and send a voice note, the audio of the voice note played will not be blocked
Operating system
Windows 11 20H1 22000.194(Microsoft Edge) &macOS Big Sur 11.6 (20G165)
Describe the bug
In the full-screen media viewer, with tall videos playing, the timestamp info gets out of bounds or cropped.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The video timestamp to fit the screen.
Desktop (please complete the following information):
Additional context
Perhaps, just like YouTube, the media player should have a fixed size (16:9 on a 16:9 display, etc.) rather than following the playing video's size and aspect ratio.
Hello
Just run npm i && npm start:
ERROR in ./src/components/sidebarRight/tabs/gifs.ts
Module not found: Error: Can't resolve '../../../lib/appManagers/appInlineBotsManager' in '/home/ruslan/Документы/tweb/src/components/sidebarRight/tabs'
@ ./src/components/sidebarRight/tabs/gifs.ts 20:0-81 95:37-57
@ ./src/components/emoticonsDropdown/index.ts
@ ./src/components/chat/input.ts
@ ./src/components/chat/chat.ts
@ ./src/lib/appManagers/appImManager.ts
@ ./src/lib/appManagers/appDialogsManager.ts
@ ./src/pages/pageIm.ts
@ ./src/index.ts
ERROR in ./src/components/chat/autocompleteHelper.ts
Module not found: Error: Can't resolve '../../helpers/dom/attachlistNavigation' in '/home/ruslan/Документы/tweb/src/components/chat'
@ ./src/components/chat/autocompleteHelper.ts 6:0-74 21:44-64
@ ./src/components/chat/stickersHelper.ts
@ ./src/components/chat/input.ts
@ ./src/components/chat/chat.ts
@ ./src/lib/appManagers/appImManager.ts
@ ./src/lib/appManagers/appDialogsManager.ts
@ ./src/pages/pageIm.ts
@ ./src/index.ts
ERROR in ./src/lib/appManagers/appImManager.ts
Module not found: Error: Can't resolve './appInlineBotsManager' in '/home/ruslan/Документы/tweb/src/lib/appManagers'
@ ./src/lib/appManagers/appImManager.ts 28:0-58 620:69-89
@ ./src/lib/appManagers/appDialogsManager.ts
@ ./src/pages/pageIm.ts
@ ./src/index.ts
ERROR in /home/ruslan/Документы/tweb/src/components/chat/autocompleteHelper.ts
./src/components/chat/autocompleteHelper.ts 7:33-73
[tsl] ERROR in /home/ruslan/Документы/tweb/src/components/chat/autocompleteHelper.ts(7,34)
TS2307: Cannot find module '../../helpers/dom/attachlistNavigation' or its corresponding type declarations.
ERROR in /home/ruslan/Документы/tweb/src/components/chat/bubbles.ts
./src/components/chat/bubbles.ts 11:42-86
[tsl] ERROR in /home/ruslan/Документы/tweb/src/components/chat/bubbles.ts(11,43)
TS2307: Cannot find module '../../lib/appManagers/appInlineBotsManager' or its corresponding type declarations.
ERROR in /home/ruslan/Документы/tweb/src/components/chat/chat.ts
Telegram mobile app and desktop app use 12h time format. So it makes sense that the web app will also use 12h format instead of 24h format
Describe the bug
My pinned chats were archived in 'k' and cannot unarchive it. Even "Saved Messages" is archived for some reason. For other chats, "Unarchive" button appears but does nothing.
They are not archived in the 'z' version and the old Telegram web.
To Reproduce
This happened without any interaction. Last week I loaded the k version and it has stayed like this.
Expected behavior
The pinned chats should not have been archived. They are not archived in Telegram app or other web apps.
Screenshots
Desktop (please complete the following information):
Additional context
Happens in the full browser windows as well as the tab panel
There is something wrong with Firefox, errors in console and blank page
Is your feature request related to a problem? Please describe.
For a long time, Telegram used 32-bit identifiers for users, groups and channels. After it became apparent that the available identifiers are running out, it switched to using 64-bit identifiers. Currently, all existing identifiers still fit into 32 bits, but this is not going to be the case for long.
Describe the solution you'd like
Telegram Web K should update its TL-schema to layer 133, which uses 64-bit identifiers.
Additional context
Pavel Durov's post that announces the migration to 64-bit IDs.
Describe the bug
The main menu isn't scrollable and gets cropped off on small screens (high zoom).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The menu itself to be reduced in height and the list to be scrollable.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
My own fix is this CSS snippet:
#column-left .sidebar-tools-button .btn-menu { max-height: 90vh; overflow: overlay; }
Video demo:
https://drive.google.com/file/d/1YHIQZKO9ZHTQQMWa38AlQePzkgBlGMFa/view?usp=sharing
Describe the bug
When sending a message containing a multiline codeblock using the triple backtick (```) syntax, the code block renders correctly in the sending client, but receiving clients (and WebK on reload of the page) don't see the message formatted as a code block (formatting sequences such as ** and __ are correctly not interpreted though, unlike WebZ).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Messages with code blocks should correctly be sent as such and be seen the same by all participants
Screenshots
Sender-Side Appearance (before reload):
Sender-Side Appearance (after reload):
Desktop (please complete the following information):
Additional context
I suspect the problem is that the message metadata for the formatting is not correctly added when sending the message, which explains why it works client-side until the page is reloaded (and the message is restored from storage)
Describe the bug
When right-clicking any element to trigger WebK's context menu, the browser's context menu pops up on top, making it impossible to use WebK's context menu. Upon left-clicking off the browser's menu, it disappears, thus making WebK's menu available.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Right-clicking chats or messages trigger only WebK's context menu
Desktop:
Describe the bug
Selected channel's avatar doesn't show up in the chats list.
Expected behavior
The avatar image to be displayed alongside the channel name.
Desktop (please complete the following information):
Additional context
web.telegram.org-1635263655417.log
The avatar image html tag doesn't appear.
Of course, reloading the website fixed it.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Login to continue and prompt for 2FA
Desktop (please complete the following information):
Google Chrome | 88.0.4324.150 (Official Build) (64-bit)
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Log from telegram:
Incomplete login attempt. Dear Francis, we detected an attempt to log into your account from a new device on 06/05/2021 at 11:51:37 UTC.
Device: Web
Location: REDACT,REDACT (IP = REDACTED)
Nobody gained access to your chats because the login was not completed. The code was entered correctly, but no correct password was given.
If this wasn't you, you can terminate the incomplete login in Settings > Devices (or Privacy & Security > Active Sessions).
Similar case when logging in using phone number:
Telegram received login code but the page just stucks
Describe the bug
Application is not reproducible with custom domain. When I deploy public
on server with HTTP (not https) access it won't starting.
To Reproduce
Steps to reproduce the behavior:
npm i && npm run build
public
folder to website without ssl supportExpected behavior
Runnable telegram web application
Desktop (please complete the following information):
Additional context
Console output from devtools:
logger.ts:44 [3.129] [API-PROXY]: WORKER ERROR ErrorEvent {isTrusted: true, message: "Uncaught ReferenceError: caches is not defined", filename: "http://tgweb.local/mtproto.worker.2fda2f3995e9e0f73938.bundle.worker.js", lineno: 3, colno: 316147, …}
s.error @ logger.ts:44
(anonymous) @ mtprotoworker.ts:319
error (async)
registerWorker @ mtprotoworker.ts:318
(anonymous) @ mtprotoworker.ts:191
13 @ mtprotoworker.ts:543
r @ bootstrap:63
11 @ langPack.ts:1
r @ bootstrap:63
Promise.then (async)
(anonymous) @ index.ts:110
(anonymous) @ main.2246262129bd79d2031c.bundle.js:1
s @ main.2246262129bd79d2031c.bundle.js:1
(anonymous) @ index.ts:39
Dark mode now have very strange colors: purple on the menu elements on the left, and some kind of brownish orange on the sender messages.
Imho it's just weird and I would very much like to have an ability to change that.
Thanks in advance for taking it into consideration
Describe the bug
On the regular vivaldi tab, the "Send by Enter" does work. But whiling using the webk version on a web panel, and "Send by Enter" is set, the "Enter" button creates new lines. When switching to "Send by Ctrl+Enter" as a option, "Ctrl+Enter" does nothing and "Enter" creates new lines.
Clicking the send button works.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
"Enter" key should send the message
Desktop (please complete the following information):
Additional context
Using dark mode, animations off, autoplay media off
Describe the bug
When converting some messages to HTML for display, Telegram Web K may generate incorrect HTML, which results in broken UI.
To Reproduce
Steps to reproduce the behavior:
When looking at the generated HTML, it contains this fragment:
<img src="assets/img/emoji/25aa.png" alt="▪<a class="anchor-url" href="https://medium.com/everstake/near-protocol-contribution-to-the-development-of-the-non-fungible-token-market-8f58d3e078b7" target="_blank" rel="noopener noreferrer"onclick="showMaskedAlert(this)">️</a>" class="emoji">
That is, there is a HTML link within the value of alt
attribute. This is not a valid HTML.
Expected behavior
The message should be displayed correctly (similar to t.me preview).
Desktop (please complete the following information):
Firefox return The address wasn’t understood
, when I have no desktop client.
Is your feature request related to a problem? Please describe.
Hi, I find this client of telegram really beautiful and smooth. It would be a waste if it only works in browser! I am wraping an electron version of it under: https://github.com/hanayashiki/tweb-electron It now works (mostly) nicely on my MacBook Pro. However, I find only implementing a simple wrapper is not enough.
Describe the solution you'd like
Electron is not just a browser without the URL bar.
There are numbers of differences that need to keep in mind. For example, when click on a address, it should pop up the user's browser instead of opening an electron window.
Plus, electron gives us the power to electron itself, lower network layers and OS apis, so features like MTProto proxy, Socks5 proxy, local file system access, etc, can be implemented too.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
No.
Additional context
Add any other context or screenshots about the feature request here.
No.
Tried to download a video from web telegram and does not worked
tried to open this video in a new tab and redirected me to this url
Is your feature request related to a problem? Please describe.
It is difficult to administer groups and channels using Telegram Web K, as only some of the necessary functions are supported.
Describe the solution you'd like
Telegram Web K should support the following additional functions:
When I want to reverse proxy the website, I cannot reverse proxy the WSS:// link, and the browser prompts the following error:
WebSocket connection to 'wss://pluto.web.telegram.org/apiws' failed: Error during WebSocket handshake: Unexpected response code: 404
Nginx has added the following:
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Hope you can help me!
On Android I can Edit folder
, but not on this web client.
Is your feature request related to a problem? Please describe.
I cannot add new contacts.
Describe the solution you'd like
When viewing a user's profile, there should be a button to add this user to contacts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.