Comments (14)
My config https://del.dog/rughackegy.txt
Log https://del.dog/vacyllanar.txt
Messages in source https://i.imgur.com/IyZEEsT.png
Messages in destination https://i.imgur.com/Zf9LDwI.png
I think you solved this issue.
By the way, the shell is more colorful now, even the errors look nice :)
from tgcf.
Which OS and which version of python are you using @cat157 ? This issue may be related with #205
I could not reproduce this problem in Linux.
from tgcf.
Interesting ... I changed the server to digital ocean and everything works. I am sorry to bother you.
OS was Ubuntu 20.04 lts, โโdigital ocean is the same.
from tgcf.
I know this will work on Linux. But initially did in fail on Windows ? This is an important issue for windows users.
What was the os, in which the error occurred. I need to find the reason.
from tgcf.
I can confirm this issue on Windows 10 running tgcf 0.2.5.post0. Here is the log:
Traceback (most recent call last):
File "D:\TeleGram\tgcf.venv\Scripts\tgcf", line 5, in
app()
File "D:\TeleGram\tgcf.venv\lib\site-packages\typer\main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\TeleGram\tgcf.venv\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "D:\TeleGram\tgcf.venv\lib\site-packages\typer\main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "D:\TeleGram\tgcf\tgcf\cli.py", line 89, in main
from tgcf.past import forward_job # pylint: disable=import-outside-toplevel
File "D:\TeleGram\tgcf\tgcf\past.py", line 16, in
from tgcf import config
File "D:\TeleGram\tgcf\tgcf\config.py", line 149, in
CONFIG = read_config()
File "D:\TeleGram\tgcf\tgcf\config.py", line 96, in read_config
config_dict = yaml.full_load(file)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml_init_.py", line 142, in full_load
return load(stream, FullLoader)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml_init_.py", line 112, in load
loader = Loader(stream)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\loader.py", line 24, in init
Reader.init(self, stream)
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\reader.py", line 85, in init
self.determine_encoding()
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "D:\TeleGram\tgcf.venv\lib\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
File "C:\Users\kms\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 255: character maps to
from tgcf.
I know this will work on Linux. But initially did in fail on Windows ? This is an important issue for windows users.
What was the os, in which the error occurred. I need to find the reason.
The previous one was also Ubuntu. Current - Ubuntu, only now on digital ocean. This surprised me.
I will try to run on Windows for the test today.
from tgcf.
The previous one was also Ubuntu 20.04
My computer also has ubuntu. But I did not face any issue. May be some dependency related to yaml was missing in your computer.
from tgcf.
I can confirm this issue on Windows 10 running tgcf 0.2.5.post0. Here is the log:
Hi @tissole where is the remaining log. The last line seems incomplete.
from tgcf.
Sorry! This is the last line
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 255: character maps to <undefined>
from tgcf.
hi @tissole , try again with the latest version of tgcf. and show me your configuration file and full logs. Use pastebin https://del.dog/ for sharing large texts.
run tgcf --loud live
, use emojis, and other weird characters in the yaml file.
from tgcf.
My config https://del.dog/erimilytuc.txt
Log after running tgcf --loud live https://del.dog/gixexaroca.txt
I deleted line 19 from config and the error was the same https://del.dog/lugestehob.txt
Then I replaced line 18 (Russian characters with the former line 19 (Japanese characters).
Log https://del.dog/orevollina.txt Only line 198 was changed.
Finally, I deleted line 18, and I kept only the first 17 lines in config. There was no error and I could forward messages to the source channel. The messages in source https://i.imgur.com/vgHwGYF.png
In the destination https://i.imgur.com/314Gf71.png
Log https://del.dog/ygrefighin.txt
from tgcf.
thanks a lot, @tissole for the logs. The new logs are much easier to read.
from tgcf.
hi @tissole, install the latest unreleased tgcf from source and try with the same config.
from tgcf.
hi @cat157 this error is now solved. From v0.2.8 onwards
click here Update to the latest version
from tgcf.
Related Issues (20)
- The issue with activating the bot. HOT 1
- "tgcf-web" command gives this error on Mac HOT 6
- Set custom thumbnail to forwarded videos
- Autoforward not working with big channels with lots of subscribers. HOT 1
- Not working with python 3.12 HOT 4
- I can't run this program properly, can anyone help me?
- -bash: tgcf-web: command not found HOT 4
- Duplicate Message
- FloodWait
- streamlit throw error: `AttributeError: module 'streamlit.components' has no attribute 'v1'` HOT 2
- Session String HOT 2
- error Invalid object ID for a chat when trying to use chat IDs
- Account got banned
- error: unpack requires a buffer of 275 bytes HOT 1
- What is this error?
- Cannot connect to the server.
- The official Telegram bot can forward messages, but the user bot cannot forward messages
- Unhandled exception on updates.py:513 new_message_handler
- If you need different filters for different channels, you can not make them, filters are only common for all channels from which you send? If so, the script is very useless.
- not work
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 tgcf.