Commit graph

33 commits

Author SHA1 Message Date
annelin 4dfd278a39 Release 2.0.0
! Backward compatibility with old sessions file (sessions.db) is broken due to planned config variables in future. New format is:
 :sessions
   jid@server
     :login: '1234567890'

— Huge code refactoring and readability improvement
— Removed XMPP features jabber:iq:register (will now try to log in after subscription request) and jabber:iq:gateway (since it does not working on foreign servers?)
— Reworked application logic — now code in `xmppcomponent.rb` only used to XMPP jobs and `telegramclient.rb` aims Telegram.
  Because of that, commands like /login /code /password are moved out to `telegramclient.rb` and now are parts of internal command to gateway (chat id 0)
— Reworked /chat and /gateway command list — please, just send /help to gateway or any active chat.
— Improved stability (I hope so...)
— Any other small (and not only) unlisted and forgotten changes..
2019-08-08 13:51:33 +03:00
annelin eca1bfcb8f [+] now asking subscription only after explicit request (/add) or after incoming message, I hope it will help 2019-07-14 10:39:36 +03:00
annelin 193dff330f [!] temporary disabled timezone detection to prevent crash after incorrect data in tz requet
[!] trying to fix fetching files without filenames/extensions..
2019-07-14 10:23:48 +03:00
annelin 7a2f85e0fe hey I'm just added OTR support ☺ 2019-06-20 19:29:06 +03:00
annelin 3f78178d60 [f] fixed avatars broadcast 2019-06-20 16:44:38 +03:00
annelin c2ff64b0bd Release 1.3.2
[FIX] fixed status-update function
[FIX] trying to decrease memory leaks by using chats and message database
2019-06-13 13:12:59 +03:00
annelin da2de42645 Release 1.2
[!] Using YAML serilaization instead of sqlite3. You may convert your SQLite db to YAML format using this:
    (echo "---"; sqlite3 users.db 'select jid,login from users'|sed "s/|/: \'/g;s/$/\'/g") > users.dat

[FIX] Fixed repllies
[UPD] Sending presence probe after disconnect received — maybe there are another XMPP resource? ☺
[UPD] When XMPP user goes online if Telegram session already established -- resync statuses with Telegram network to get all contacts online immediately
2019-06-11 16:24:44 +03:00
annelin d4863a50b0 Release v1.2
Added support of Voice Notes
Small fixes in messages formatting
Minor code cleaning
Fixed error on /info command
Added /reconnect command
[-] Removed /history command as it does not work, use /search count as it provides same fuctionality :(
2019-06-01 01:35:03 +03:00
annelin b160e6f2ff Release 1.1
Now reading messages instant (if we're online), otherwise we will got duplicate updates.
Code optimizations and simplifications.
Added missing dependency (fileutils)
2019-05-31 14:30:25 +03:00
annelin dc615f977c Release 1.0.
[NEW] implemented XEP-0030 (Service Discovery) — you can now see transport in service discovery
[NEW] implemented XEP-0077 (In-Band Registration) — now you can also start session from GUI Jabber client
[NEW] implemented XEP-0100 iq:jabber:gateway — you can now add Telegram contact from your GUI Jabber client
[NEW] implemented presence cache. now sending presences once a minute to prevent presence flooding
[FIX] fixed online presence after establishing telegram session and offline after disposing session
[FIX] won't use tdlib message database anymore, implemented our own messages cache
[FIX] show "chat created" message correctly
[FIX] fixed /info command
[FIX] fixed closing secret chats
[UPD] now you can start secret chat directly by sending /secret to contact
[UPD] /debug renamed to /info, now shows active sesions, removed memory profiling as it does not helps
[UPD] removed main loop (but still shutting down correctly) — use systemd etc. to restart transport correctly
2019-05-07 22:22:26 +03:00
annelin 3545c692e1 Release v1.0-beta3
[FIX] Correct behaviour of /connect and /disconnect commands that also affects Jabber presences
2019-05-05 01:42:59 +03:00
annelin 0625b5c3d4 Release 1.0-beta2
[FIX] Fixed /connect command
[ADD] Added session counter (active/total) in /debug command
2019-05-05 00:21:59 +03:00
annelin 88c7eb09da Release 1.0-beta1. Some more tests and here we go..
Warning! It is beta software and it has not been tested thoroughly.

[UPD] Code restructurization. Removed unneccessary XMPPSession class.
[UPD] Recuded memory consumption.
[UPD] Seems like memory leaks fixed too, need test a bit longer
[UPD] Now running in forever-loop, use double Ctrl+C to quit
[ADD] Admin commands /sessions, /debug and /restart
[ADD] New config parameters: xmpp->debug to print XML stream and xmpp->admins[] to give access to above mentioned /commands
[ADD] We can now use memory profiler to get detailed memory usage information: run application with --profiler key (and also gem install memprof2) (yes, fucking leaks...)
[FIX] Fixed secret chat closing (I hope so...)
2019-05-04 23:17:29 +03:00
annelin 269dfce55b Removed force GC.start because it doesn't help us. 2019-05-04 05:40:46 +03:00
annelin dc7af59673 Release 0.8.3
[FIX] fixed sending messages to unavailable chat
[FIX] some fixes in /members command
[UPD] better formatting of /help message
[ADD] add /info id command to get user/chat info by its id
2019-04-16 17:07:15 +03:00
annelin 3f0fcba27b Release 0.8.2
[ADD] /members command to show current chat members
2019-04-16 16:24:03 +03:00
annelin 7a0845ad39 Added README.md & license 2019-04-16 07:53:31 +03:00
annelin 8808fafeff Release v0.8
[ADD] added /setname, /setusername, /setbio, /setpassword commands (see /help)
2019-04-16 07:00:09 +03:00
annelin 2987d8f3a5 Release 0.7
[FIX] now trying to revive stream if any exception occured
[FIX] fixed >quotes without messages ID
[UPD] using unicode symbols to compact msg prefix
[UPD] logging slightly modified
[UPD] added garbage collection after each incoming message
2019-04-16 06:45:56 +03:00
annelin 1ae35f501d Release 0.6.1
[FIX] fixed messages echo when xmpp session goes offline
[UPD] do not sync all telegram statuses immediately because it leads to stream error
[UPD] now using messages and files database again to reduce thousands of requests
2019-04-15 08:03:40 +03:00
annelin d20414617a Release 0.6
[NEW] broadcasting vcard photo update
[NEW] new commands: /secret, /group, /supergroup, /channel, /search, /history (send /help to any contact)
[UPD] improved formatting
2019-04-14 17:41:40 +03:00
annelin a799c1244b Release 0.5
[NEW] Now using local Jabber timezone
2019-04-14 05:56:29 +03:00
annelin 0032a83894 Release 0.4.1
[FIX] fixed joining groups/adding contacts
[FIX] fixed kick/ban/unban commands
[FIX] fixed status of supergroups
2019-04-13 18:39:20 +03:00
annelin 12191222b0 Release 0.4
[NEW] vCard support
[UPD] improved overall stability, no longer use threads
[UPD] no longer using tdlib messages and chats database — now correctly /leaving chats
[UPD] removed /info command because of vCards support
2019-04-13 17:42:56 +03:00
annelin 33677f5289 Release v0.3
[UPD] more correct way to handle user/chat/auth updates
[UPD] removed successful login message, using presence instead
[NEW] config option `content_upload_prefix` that says which url prefixes will be treated as media and uploaded as file to telegram
[NEW] processing self outgoing messages that sent via another telegram instance
[NEW] added gif animations, locations, video, chat events support
[NEW] control commands implemented:
	/s/old/new (edit), /d (delete), /info @username, /add @username or uid, /join invite.link or id, /invite @username, /kick @username, /ban @username [hours], /block, /unblock, /leave, /delete
2019-04-12 06:11:56 +03:00
annelin 714d9b4f41 Release v0.2
[FIX] fixed code/password forever waiting
[UPD] now completely removing session (from fs too) when /logout
[UPD] most of log messages moved to debug
[UPD] updated help message
2019-04-09 09:42:42 +03:00
annelin 20b07cfe70 [FIX] fixed bug with creating new session
[NEW] added reply possibility with >msgid
[NEW] added delivery reports (will make all messages in chat read when sending message to this chat)
2019-04-09 01:28:26 +03:00
annelin 1151bbf89d [FIX] Using content.file.remote.id instead of file.id because file.id counter sometimes decrements O_O
[FIX] Correct handling of content caption
2019-04-08 23:46:16 +03:00
annelin 51bc5645b2 [!] Remove plain auth code/passphrase from application log 2019-04-07 15:04:01 +03:00
annelin 857e8bd202 Release v0.1
[+] New config options (see config.yml.example)
[+] Storing transport sessions in sqlite db
[+] Auto connecting if we have stored session JID that came online
[+] Auto disconnecting when JID going offline
[+] Roster and status synchronisation with Telegram contact list
[+] Added Edited and Deleted Messages support
[+] Add Files (Audio, Photo, Documents, Stickers) support
[+] Added incoming text formatting with MSG ID, user names and login
[~] Some new config options (see config.yml.example)
[~] Some code refactoring
2019-04-07 14:58:07 +03:00
annelin e7610ef310 Comments, comments.. 2019-04-06 11:23:14 +03:00
annelin 953b752eaf Added "/logout" command 2019-04-06 10:46:29 +03:00
annelin 08540206f0 Renamed files and libs
Added config file (config.yml)
Changed logger implementation
Correct Telegram session terminating
2019-04-06 10:29:48 +03:00
Renamed from inc/telegram.rb (Browse further)