Giter VIP home page Giter VIP logo

Comments (4)

filippz avatar filippz commented on September 7, 2024

There is no need for third party apps for WhatsApp import as it's possible to do it in official Telegram app for Android - simply name your txt file WhatshApp.txt (https://github.com/DrKLO/Telegram/blob/33a48d8945654afdb99df778647251cc2fca4bcc/TMessagesProj/src/main/java/org/telegram/messenger/MessagesController.java#L1475) and store it somewhere on your phone and then when you share that txt file via Telegram the app will import that file in the selected chat instead simply sending it as a message attachment.

from telegram_import.

lorvent avatar lorvent commented on September 7, 2024

but as i told you earlier, when i do that...all history is coming on left side

where as when i use your import, chats are adjusted on both left and right sides depending on who sent it.

if what i am trying to say is not clear to you... i can send you screenshots.

thanks.

from telegram_import.

filippz avatar filippz commented on September 7, 2024

When you look at the WhatsApp file my code produces you can see that there is just "screen name" of the message sender - so I would say that Telegram servers parse the file in such a way that they compare that name with your name as seen by Telegram and if it's the same it considers those messages as sent by you:
01/07/23, 19:07:25 - Some Name: message

Can you check if your txt file has the same Some Name part as the name in Telegram? My guess would be that you can simply use a text editor to search/replace - Some Name: with - Name In Telegram:

from telegram_import.

lorvent avatar lorvent commented on September 7, 2024

Thanks... that worked!

but when i try with txt file, its not importing media eventhough media exists in same folder...

i will dig about that....

from telegram_import.

Related Issues (11)

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.