Git Product home page Git Product logo

Comments (9)

Diglee147 avatar Diglee147 commented on August 27, 2024

i installed docker, but i don't know what's it hehe...
I'm used to do simple python projects on windows, I would like to learn this part of linux.

from forwarder-app.

alvhix avatar alvhix commented on August 27, 2024

Hello, you can make the separate folder wherever you want in your system, the .env file is the file that you need to create with your Telegram credentials and can be obtained at the official Telegram page. All the applications need to have an api_id and api_hash, check this documentation for more info.
Also, if you are very new to Docker I would suggest learning it first or you can just execute the project directly downloading the sources and executing it python3 cli.py. It can be executed in Linux or Windows, as you wish.

All this steps are explained in the README, make sure to check it out and if you have any specific doubt I will be happy to assist.

from forwarder-app.

Diglee147 avatar Diglee147 commented on August 27, 2024

Nice! Thx a lot! I will do it tomorrow.

from forwarder-app.

Diglee147 avatar Diglee147 commented on August 27, 2024

Hello, you can make the separate folder wherever you want in your system, the .env file is the file that you need to create with your Telegram credentials and can be obtained at the official Telegram page. All the applications need to have an api_id and api_hash, check this documentation for more info.
Also, if you are very new to Docker I would suggest learning it first or you can just execute the project directly downloading the sources and executing it python3 cli.py. It can be executed in Linux or Windows, as you wish.

All this steps are explained in the README, make sure to check it out and if you have any specific doubt I will be happy to assist.

Did it. Trying on Windows, i created the .env file and checked the variables api id and api hash with prints. It's ok, but i got this problem:20221228_174254~2.jpg

from forwarder-app.

Diglee147 avatar Diglee147 commented on August 27, 2024

Looks like it's some problem setting tdlib parameters

from forwarder-app.

Diglee147 avatar Diglee147 commented on August 27, 2024

i still trying, the problem is here:
self.tdjson.send(
{
"@type": "setTdlibParameters",
"database_directory": self.database_directory,
"use_message_database": self.use_message_database,
"use_secret_chats": self.use_secret_chats,
"api_id": self.api_id,
"api_hash": self.api_hash,
"system_language_code": self.system_language,
"device_model": self.device_model,
"application_version": self.app_version,
"enable_storage_optimizer": self.enable_storage_optimizer,
"use_test_dc": self.use_test_dc,
"use_file_database": self.use_file_database,
"use_chat_info_database": self.use_chat_info_database,
}
)

but i don't know how to solve

from forwarder-app.

alvhix avatar alvhix commented on August 27, 2024

Download new version with pywtdlib 0.2.0 and try again, new TDLib version changed some parameters.

from forwarder-app.

Diglee147 avatar Diglee147 commented on August 27, 2024

Worked 100%
Now i have this problem:
image

I am starring u, u are good

from forwarder-app.

Diglee147 avatar Diglee147 commented on August 27, 2024

simple solution:
def forward_messages(self, message) -> None:
message_id = message.message_id
source_id = message.source_id
destination_ids = message.destination_ids
options = message.options
send_copy = message.send_copy
remove_caption = message.remove_caption
print(destination_ids)
# forward messages
self.client.forward_message(
destination_ids,
source_id,
message_id,
options,
send_copy,
remove_caption,
)
# log action
self.logger.info(f"Message has been sent to the API: {message}")

    it worked for me, thx man, u are the best, i deserve the best for ur life, closing here.

from forwarder-app.

Related Issues (3)

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.