Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Development => Topic started by: kaomot on 21 04 2016, 01:42:24

Title: Telegram protocol
Post by: kaomot on 21 04 2016, 01:42:24
I'm very happy to see that Telegram is finally coming to Miranda, even though the implementation just begun, as it can be seen in the link bellow:

http://trac.miranda-ng.org/log/trunk/protocols/Telegram

Any idea of when we might have a working protocol?

Can't wait to start using Miranda again, and you can count on me for beta testing! :D
Title: Re: Telegram protocol
Post by: kaomot on 05 09 2016, 07:46:05
There is a small bounty for Telegram support at https://www.bountysource.com/issues/37577065-add-support-for-telegram
Title: Re: Telegram protocol
Post by: lunamoth on 06 11 2016, 04:11:05
please, make it
Title: Re: Telegram protocol
Post by: NEOhidra on 18 03 2017, 09:16:54
Someone has increased the bounty to $ 265
Title: Re: Telegram protocol
Post by: Naith on 24 05 2018, 14:02:38
Seems like it is dead again, although it got the most votes on the uservoice service (https://miranda-ng.uservoice.com/forums/250387-general/filters/top).

I would really love this addon and help develop it by testing stuff out for example!
Title: Re: Telegram protocol
Post by: dartraiden on 27 05 2018, 14:06:54
Maybe this summer. Maybe...
Title: Re: Telegram protocol
Post by: webtau on 08 10 2020, 06:57:17
When will you release this protocol?? 8)
Title: Re: Telegram protocol
Post by: dartraiden on 09 10 2020, 15:38:46
The project has one active developer, there is absolutely no time for new protocol support. In addition, Telegram TOS requires all third-party clients to implement support for deleting messages. This will require even more effort, because Miranda core does not support deleting messages from the database at the request of the server.
Title: Re: Telegram protocol
Post by: Vulpix on 10 10 2020, 01:55:00
One quick correction, we do indeed support deletion of messages from the database. For starters, Discord is the protocol that implements it. The rest is quite true, our only active dev is @ghazan , and we all love him, but he doesn't have time for implementation of a new protocol since Miranda is not his job
Title: Re: Telegram protocol
Post by: Thug on 10 10 2020, 12:09:17
Vulpix, Elzor is also an active developer :) But he is working on VK protocol only. Anyway I wonder why so few coders are interested in Miranda. Pidgin has many developers working on different plugins. I have tried it, but Miranda seems much cooler for me. So why Pidgin attracts more people?
Title: Re: Telegram protocol
Post by: Vulpix on 10 10 2020, 23:42:59
Ah! My apologies to Elzor, quite true.

I guess because Pidgin compiles and runs on Linux natively?
Title: Re: Telegram protocol
Post by: janskalicky on 08 05 2022, 22:37:33
any current activity on support for the Telegram protocol?
Title: Re: Telegram protocol
Post by: ghazan on 09 05 2022, 11:44:02
janskalicky, no, not at all, total silence
Title: Re: Telegram protocol
Post by: hooddy on 28 11 2022, 08:59:49
janskalicky, no, not at all, total silence
very pity. its fine to have telegram in lightwess messenger instead of monstrous telegram/unigram etc. even with no voice/videos, just to texting.
Title: Re: Telegram protocol
Post by: ghazan on 29 11 2022, 10:16:33
hooddy,
well, right now an attempt is being made to implement WhatsApp protocol, because it's even more monstrous than Telegram
evidently, TG is the next goal
Title: Re: Telegram protocol
Post by: dartraiden on 08 12 2022, 20:15:57
Telegram protocol just landed in nightly builds. Currently it can't do anything.
Title: Re: Telegram protocol
Post by: dartraiden on 26 12 2022, 12:00:35
Implemented text messages sending/receiving.
Implemented status support.
Title: Re: Telegram protocol
Post by: Vulpix on 28 12 2022, 13:40:36
This is great news.

I have considered Telegram and Signal as the only reasonable replacements for Tox+Discord. Tox being what it is due to the nature of the procol making it unfriendly towards mobile thus user adoption never took off.
Discord being what it is and banning 3rd party clients.

I got Telegram set up but seems after a friend added me, I wasn't able to see his messages in Miranda. I could send messages and they were sent correctly. I could see incoming messages in the netlog but they simply weren't being stored in Miranda db itself.

I don't mind sharing various logs etc to help out with Telegram proto development, because I fear Discord might just decide to randomly banhammer me one day (although it has not yet happened).
Title: Re: Telegram protocol
Post by: marson on 13 01 2023, 20:36:17
Hello

This is my first post on the forum so hello all.

I installed the telegram plugin, it works however I have strange behaviour. Whenever I send the message to someone the messages are displayed as being send by my participant not as mine, like this. Let's say I am Marek and the other person I am talking with is called John so the conversatopm should look like:

Marek: hi John
John: hi Marek
Marek: How are you
John: fine how about you?
Marek: I'm fine too - thanks

however it looks like this

John: hi John
John: hi Marek
John: How are you
John: fine how about you?
John: I'm fine too - thanks

it is especially hard because I am using winterspeak plugin to read the incoming messages via TTS and in this case everything is read both incoming and outgoing messages since all of them ale treat as incoming one. It works that way onlu when using telegram, I am using other accounts too and everyyhing is displayed correctly on other protocols. below is my versionInfo:

VersionInfo
Quote
CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz [Intel64 Family 6 Model 158 Stepping 10] [DEP Enabled] [12 CPUs]
Installed RAM: 32701 MBytes
Microsoft Windows 10 Professional Edition, 64-bit (build 22000)
Internet Explorer: 9.11.22000.0 (build 922000)
Administrator privileges: No
OS Languages: (UI | Locale (User/System)) : Polish/Polish | Polish/Polish
Free disk space on Miranda partition: 995538 MBytes

Miranda NG Version: 0.96.2 alpha build #25174 (fcf2f92e1b) x64
Build time: 12 Jan 2023 19:24:28
Profile: D:\Miranda-NG\Profiles\Marek_old\Marek_old.dat
Database driver: SQLite database driver
Profile size: 7684096 Bytes
Profile creation date: 6 Jan 2023 17:50:22
Language pack: Polish (PL) [0415]
Service Mode: No

Active Plugins (30):
¤ AVS.dll v.0.98.1.6 [5 Jan 2023 17:14:02] - Avatar service
¤ Clist_modern.dll v.0.9.1.12 [5 Jan 2023 17:14:53] - Modern contact list
¤ CrashDumper.dll v.0.2.0.1 [5 Jan 2023 17:15:07] - Crash dumper
¤ Db_autobackups.dll v.0.1.0.7 [12 Jan 2023 19:24:54] - Db autobackuper
¤ DbChecker.dll v.0.95.13.3 [12 Jan 2023 19:27:34] - Database checker
¤ Dbx_sqlite.dll v.0.96.2.2 [12 Jan 2023 19:27:30] - Miranda NG SQLite database driver
¤ Dummy.dll v.0.2.0.1 [12 Jan 2023 19:26:58] - Dummy protocol
¤ Facebook.dll v.0.1.0.11 [5 Jan 2023 17:17:00] - Facebook
¤ GG.dll v.0.95.11.1 [5 Jan 2023 17:14:20] - Gadu-Gadu protocol
¤ historypp.dll v.1.5.1.5 [12 Jan 2023 19:32:52] - History++
¤ ICQ.dll v.0.96.2.3 [5 Jan 2023 17:17:02] - ICQ-WIM protocol
¤ IEView.dll v.1.6.0.5 [5 Jan 2023 17:14:25] - IEView
¤ Import.dll v.0.95.11.1 [12 Jan 2023 19:25:02] - Import contacts and messages
¤ IRC.dll v.0.96.1.4 [5 Jan 2023 17:14:08] - IRC protocol
¤ Jabber.dll v.0.95.11.1 [12 Jan 2023 19:25:14] - Jabber protocol
¤ NewEventNotify.dll v.0.2.2.6 [12 Jan 2023 19:25:32] - NewEventNotify
¤ NewXstatusNotify.dll v.1.4.0.12 [7 Jan 2023 13:03:42] - xStatus notify
¤ PluginUpdater.dll v.0.2.1.4 [5 Jan 2023 17:15:22] - Plugin updater
¤ PopupPlus.dll v.2.1.2.0 [5 Jan 2023 17:14:46] - Popup plus
¤ SimpleStatusMsg.dll v.1.9.0.9 [12 Jan 2023 19:25:16] - Simple status message
¤ SmileyAdd.dll v.0.3.2.2 [12 Jan 2023 19:25:08] - SmileyAdd
¤ StatusManager.dll v.1.2.0.6 [5 Jan 2023 17:16:45] - Status manager
¤ TabSRMM.dll v.3.6.2.6 [12 Jan 2023 19:24:36] - TabSRMM
¤ Telegram.dll v.0.11.0.1 [12 Jan 2023 19:32:20] - Telegram protocol
¤ Tipper.dll v.2.1.0.7 [5 Jan 2023 17:14:33] - Tipper
¤ TopToolBar.dll v.0.8.0.5 [5 Jan 2023 17:14:47] - TopToolBar
¤ VoiceService.dll v.0.1.3.1 [12 Jan 2023 19:27:38] - Voice Service
¤ WhatsApp.dll v.0.0.1.1 [5 Jan 2023 17:20:45] - WhatsApp protocol
¤ WinterSpeak.dll v.0.9.8.3 [5 Jan 2023 17:16:07] - WinterSpeak
¤ YAMN.dll v.0.1.2.7 [7 Jan 2023 17:37:28] - Mail Notifier

Protocols and Accounts:
-------------------------------------------------------------------------------
Facebook                 1 - Enabled 0 - Disabled  Loaded
GG                       1 - Enabled 0 - Disabled  Loaded
JABBER                   1 - Enabled 0 - Disabled  Loaded
Telegram                 1 - Enabled 0 - Disabled  Loaded
WhatsApp                 1 - Enabled 0 - Disabled  Loaded

Icon Packs:
-------------------------------------------------------------------------------
 Fp_icons.dll [16 Aug 2020 16:07:02]
 GG.dll [16 Aug 2020 16:07:02]
 HistoryPP_icons.dll [12 Jan 2023 19:32:38]
 Proto_AIM.dll [16 Aug 2020 16:07:02]
 Proto_Discord.dll [10 Jan 2022 11:32:06]
 Proto_Dummy.dll [12 Jan 2023 19:32:42]
 Proto_Facebook.dll [5 Jan 2023 17:20:53]
 Proto_GG.dll [5 Jan 2023 17:20:50]
 Proto_ICQ.dll [5 Jan 2023 17:20:53]
 Proto_IRC.dll [5 Jan 2023 17:20:50]
 Proto_Jabber.dll [12 Jan 2023 19:32:38]
 Proto_MetaContacts.dll [12 Jan 2023 19:32:42]
 Proto_MRA.dll [5 Jan 2023 17:20:53]
 Proto_MSN.dll [16 Aug 2020 16:07:02]
 Proto_NewsAggregator.dll [16 Aug 2020 16:07:02]
 Proto_Skype.dll [16 Aug 2020 16:07:02]
 Proto_Telegram.dll [12 Jan 2023 19:32:42]
 Proto_Yahoo.dll [16 Aug 2020 16:07:02]
 Proto_YAMN.dll [7 Jan 2023 17:43:22]
 TabSRMM_icons.dll [12 Jan 2023 19:32:38]
 Toolbar_icons.dll [5 Jan 2023 17:20:50]
 xStatus_Jabber.dll [12 Jan 2023 19:32:38]
[close]
Title: Re: Telegram protocol
Post by: ghazan on 14 01 2023, 09:13:48
Whenever I send the message to someone the messages are displayed as being send by my participant not as mine, like this.
do you send messages from Miranda or from another device/client?

another question: do you use IEView as a message log viewer? or the built-in one?
Title: Re: Telegram protocol
Post by: marson on 14 01 2023, 09:46:46
Code: [Select]
do you send messages from Miranda or from another device/client?
It doesn't matter if I send the miiranda message from miranda or natice telegram itself, the messages always appear as being send by my participant not mine.

Yes - I use IEView as message log
Title: Re: Telegram protocol
Post by: ghazan on 14 01 2023, 09:56:02
marson,
Yes - I use IEView as message log
As for me, IEView without skin works ok. Which skin do you use? Could you attach it here?
Title: Re: Telegram protocol
Post by: Vulpix on 14 01 2023, 10:01:09
I use ieview and I had this exact issue (all chat showing as if I had sent it) some time ago when Telegram became supported for the first time. But it doesn't happen on the version you're using anymore (I am on the same version as you right now).
Title: Re: Telegram protocol
Post by: dartraiden on 14 01 2023, 12:10:30
Cannot reproduce with current dev version + IEView + Facebook IEView template.
History++ and tabSRMM internal log also fine.
Title: Re: Telegram protocol
Post by: marson on 14 01 2023, 12:31:05
Code: [Select]
As for me, IEView without skin works ok. Which skin do you use? Could you attach it here?
Yes - sure - my IeView skin is called GoneDark, here is the link to it: https://xxh.pl/GoneDark.zip

Can you post the link to the Ieview template you use, I will try it and see if this is related to template I use.
Title: Re: Telegram protocol
Post by: dartraiden on 14 01 2023, 19:51:26
https://miranda-ng.org/addons/4464/
Title: Re: Telegram protocol
Post by: dartraiden on 14 01 2023, 19:56:37
GoneDark, here is the link to it: https://xxh.pl/GoneDark.zip
All OK.
Title: Re: Telegram protocol
Post by: marson on 14 01 2023, 20:51:15
Strange so I have no idea what could be the problem.

I checked History++ plugin and it also have all messages written as my participant, I have no idea what can I do, it is strange that problem occurs only on telegram, other protocols works OK.
Title: Re: Telegram protocol
Post by: dartraiden on 30 01 2023, 16:55:33
marson, try to add phone number without "+"

Technically, inside the protocol, messages are sent from a "number without a plus sign". Example:

- Miranda sees the phone number +79056051234 in the settings
- in reality, inside the protocol, the plus sign is discarded and the message is sent from 79056051234
- Miranda thinks "hmm, +79056051234 and 79056051234  are different numbers => this is not user phone number, so I will show this message as a message from contact"

Title: Re: Telegram protocol
Post by: marson on 07 02 2023, 21:56:19
@dartraiden

I didn't see your last post so I dont change anything but after last miranda and plugin update all works fine so just for curiosity, do you change someting to fix (overcome) the problem?

I have additional question, / suggestion are you planning to add support for adding telegram bots to contact list in miranda so it could be read from them, or maybe there is an possibility yo add it but I don't know how?

also it would be nice to support voice message, I assume that this can be hard to implement so maybe for now at least showing text in chat window like - user xxxx recorded the message, because for now there is no indication about this and if I don't have phone near me I have no idea about new voice message.
Title: Re: Telegram protocol
Post by: dartraiden on 10 02 2023, 19:11:27
Yes, we plan to implement adding contacts.

Quote
support voice message
Receiving or sending? Receiving is easy to implement because it's basically just a file transfer. Sending is hard. Only one protocol in Miranda supports multimedia - Jabber. There, this feature is still very experimental and requires manual manual addition of special libraries. It is not known who and when will polish it, only then it can be added to other protocols.
Title: Re: Telegram protocol
Post by: dartraiden on 10 02 2023, 19:16:25
Telegram sent a notification to third-party app developers today.

Starting from February 18, when you first log into any desktop and web Telegram client (doesn't matter 3rd-party or official), there will be only one way to receive a confirmation code - get it in the Telegram mobile client on your mobile device. No SMS anymore.

Thus, if you want to add a Telegram account to Miranda, you will need to have a telegram client on your phone.
Title: Re: Telegram protocol
Post by: marson on 12 02 2023, 12:18:33
In my opinion receiving will be sufficient or even if not maybe some kind of notification about the voice message.
Title: Re: Telegram protocol
Post by: dartraiden on 13 02 2023, 19:12:17
Yes, we plan to implement adding contacts.
Done. Please test.
Title: Re: Telegram protocol
Post by: marson on 19 02 2023, 15:41:30
Quote
    Yes, we plan to implement adding contacts.

Done. Please test.

I created the bot, it works under telegram native client but I cannot add it to contact list in miranda, I can find it, however when I click to add then select telegram group to add then click OK nothing happened I cannot see contact on the list neither I can see message from the bot on muranda but I can see it on native client, I even closed the native client and stay opened only miranda but  no change.
Title: Re: Telegram protocol
Post by: webtau on 22 02 2023, 12:08:15
Stopped working after ~1hr, new messages not coming.