Comments (4)
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.
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.
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.
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)
- KeyError: 'contact_vcard' HOT 4
- getting error HOT 20
- Error with attribute 'CheckHistoryImportRequest' HOT 3
- Import into group HOT 10
- Formatting
- KeyError: 'messages' HOT 5
- Import chat to a group HOT 1
- Unknown import format (caused by InitHistoryImportRequest) HOT 2
- invalid Peer was used HOT 12
- telethon.errors.rpcerrorlist.FloodWaitError: A wait of X seconds is required (caused by CheckChatInviteRequest) HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram_import.