Coder Social home page Coder Social logo

nctelegram's Introduction

ncTelegram

A ncurses Telegram client developed in Python with the urwid library.

screenshot of ncTelegram

Dependencies

Installation

Arch Linux:

You can use the pkgbuild from AUR:

$ yaourt -S nctelegram-git

OR

$ pacaur -y nctelegram-git

Fedora:

Install dependencies:

$ sudo dnf install telegram-cli python3-urwid python3-psutil

Install ncTelegram through pip:

$ sudo pip3 install --upgrade https://github.com/Nanoseb/ncTelegram/archive/0.9.2.tar.gz

If you want notifications and inline images:

$ sudo dnf install libnotify caca-utils

Debian/Ubuntu:

To install telegram-cli just follow its readme.

Install urwid:

$ sudo apt-get install python3-urwid python3-psutil

Install ncTelegram through pip:

$ sudo pip3 install --upgrade https://github.com/Nanoseb/ncTelegram/archive/master.tar.gz

If you want notifications and inline images:

$ sudo apt-get install libnotify-bin caca-utils

Crux:

Install repository:

$ wget -O /etc/ports/wildefyr.httpup "https://crux.nu/portdb/?a=getup&q=wildefyr"
$ ports -u

Install ncTelegram:

$ prt-get depinst nctelegram

If you want notifications and inline images:

$ prt-get depinst libnotify libcaca

Usage

Before the first run of nctelegram, telegram-cli must be launched first in order to register your account on your machine for the first time. (phone number and verification code).

An example of the configuration file can be found in /etc/ncTelegram.conf, copy it to your personal folder before modifying it:

$ cp /etc/ncTelegram.conf ~/.ncTelegram.conf

Finally, make sure that the path of telegram-cli and the public key are set correctly in ~/.ncTelegram.conf.

Tips

  • Press esc to leave the text area.

  • Press q to quit the ncTelegram.

  • Press esc twice to draw a separator at the end of the message list.

  • Use ctrl+o to open the last file or url sent to the current channel.

  • Use ctrl+r to insert a linebreak.

  • To send files you can simply drag and drop them into your terminal or send as a message their path between single quotes (').

  • You can navigate the channel list with ctrl+p and ctrl+n.

  • Select Download message buffer to navigate quickly between channels.

  • Vim-like key bindings are also available, use hjkl to navigate between lists, use i to select the text area and esc to leave it.

  • Use shift + Up or shift + Down to navigate in your own message history.

Troubleshooting

If nctelegram crashes, please report the issue with a backtrace if possible.

Before restarting nctelegram again, check if telegram-cli is still running; if so kill it before restarting nctelegram.

nctelegram's People

Contributors

nanoseb avatar albalitz avatar 0xf10413 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.