Cheatsheet
Evil mode keybindings
Root buffer:
s,telega-filter-map.ufor unread,mfor mention,/for reset,ffor folder,tfor type,sfor search,afor Interactively select a Chat filter to add to active filter,efor Edit and reapply filters list.ifor “important”. Defaults to mentions and unmuted chats with unread messages or reactions.
C,telega-chat-create. Interactively create new chat.
Chat buffer, also known as chatbuf:
Za,telega-chatbuf-attach. Attach anything, including stickers.Zf,telega-chatbuf-attach-media. Attach FILENAME as media.Zv,telega-chatbuf-attach-clipboard. Attach clipboard to the chatbuf as photo. Requires an image in clipboard.zz,telega-chatbuf-recenter-1. Recenter message at point.M-x telega-msg-remove-text-spoiler. Remove text spoiler. Sometimes you can use<RET>.
Image view in chatbuf:
{,telega-image-prev. Show previous image in chat.},telega-image-next. Show next image in chat.
g A for chatbuf navigation:
u,telega-chatbuf-next-unread. Goto next unread message in the chatbuf.>orr,telega-chatbuf-read-all. Jump to the last message and mark all messages as read.@orm,telega-chatbuf-next-unread-mention. Goto next unread mention or search for most recent mention before message at point.!,telega-chatbuf-next-unread-reaction. Goto next unread reaction in chatbuf.o,telega-chatbuf-next-outgoing. Goto next outgoing (sent by you) message or search for last outgoing message.^orP,telega-chatbuf-goto-pinned-message. Go backwards to last pinned message for the chatbuffer. If not found, go to the latest pinned message. Note: it remembers the last pinned message viewed and searches from there, outliving the chatbuf’s lifetime.s,telega-chatbuf-inplace-search. Search backward in the chatbuf. If C-u is given, then search forward instead.
g a for Telegra prefix map:
t,telega. Switch to root buffer.b,telega-switch-buffer. Interactively switch to an openedCHAT’s buffer.c,telega-chat-with. Start messaging withCHAT-OR-USER.s,telega-saved-messages. Switch to “Saved Messages” chatbuf.u,telega-switch-unread-chat. Switch to next unread message in next unreadCHAT. Press again to highlight the unread message.
On message at point:
!,telega-msg-add-reaction. Add reaction toMSG.i,telega-msg-edit. Start editing theMSG.<tab>,telega-button-forward. Move forward or backward (<backtab>) to next visible/active button.T,telega-msg-open-thread-or-topic.- MSG could be a channel post, in this case open thread in the discussion group.
- Or MSG could be in supergroup, then filter messages to the corresponding thread or topic.
Common keys:
g?,telega-describe-*. Show info about various items, e.g.USER,CHATandMSG.q. Quit window.- In chatbuf, you may need to use
C-u qto force close window. - This is because after a
pop-to-buffer(telega-chat--pop-to-bufferandtelega-msg-open-thread-or-topic) orpop-to-buffer-same-window(telega-webpage--instant-viewandtelega-image-view-file) call
- and returning from the pop up,
- the
quit-restorewindow parameter is reset tonilfrom(same (#<buffer *Telega Root*> 1 #<marker at 582 in *Telega Root*> 198) #<window 3 on â—€ [redacted]> #<buffer â—€ [redacted]>), where#<buffer *Telega Root*>is theprev-bufferthatquit-windowwas supposed to display. - To workaround this, bind
qto a workaround function in both maps oftelega-chat-mode. - How to modify key bindings in chatbuf:
evil-collection-set-readonly-bindingsbindsqintelega-msg-button-mapto#'quit-window.telega-chat-mode’s keybindings are a combination oftelega-msg-button-mapandtelega-chat-mode-map. The former takes precedence when a chat message is focused.- Therefore, both maps needs to be modified.
- In chatbuf, you may need to use
Message bindings (cursor on message):
\\{telega-msg-button-map}
Global chat bindings:
\\{telega-chat-mode-map}"
Completion
telega-company-username, backend to complete username. Start with@.telega-company-hashtag, backend to complete hashtag. Start with#.telega-company-emoji, backend to complete emojis. For stickers, useZa.telega-company-botcmd, backend to complete bot commands. Only completes in a bot chatbuf.
Directories
telega-cache-dir, Directory for telegram downloads.
Getting Started
Installing Telega on macOS
- Install the Symbola font and configure
unicode-fontswith Apple Color Emoji.
(after! unicode-fonts (push "Apple Color Emoji" (cadr (assoc "Supplemental Symbols and Pictographs" unicode-fonts-block-font-mapping))))- Install dependencies with MacPorts. Optional dependencies are
qrencodefor log in.pngpastefor pasting image from clipboard.
sudo port install tdlib qrencode pngpaste- Configure
telega-serverlibrary prefix fortdlib.
(setq telega-server-libs-prefix "/opt/local")