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

Fixes send selection and adds a send link and send page context option #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

NICHOLAS85
Copy link

I'm not too savvy with the telegram API(or js really) but from my research, it seems sendMediaGroup is used for groups of media like pictures and video however in the selection context only text would be available (afaik).
I believe this was causing the send selection option to fail. I've switched it to use the selected text and the sendMessage method for now.

I've also added a send link option for when a user right clicks a link and a send page option for when a user right clicks the page.

let me know what you think!

src/background/refreshMenus.ts Show resolved Hide resolved
src/background/refreshMenus.ts Outdated Show resolved Hide resolved
@NICHOLAS85
Copy link
Author

NICHOLAS85 commented Apr 30, 2021

I just committed my first go at a page action and popup. It's a little rough but can be improved upon (For example the innerHTML replacement is temporary until I have time to properly do it).

If a user only has one telegram channel added, the page action will immediately send the page to that channel when clicked. Otherwise, the popup gives them a dropdown list to which a user can choose where to send the page to.

@NICHOLAS85 NICHOLAS85 requested a review from phaux April 30, 2021 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants