apenasrr / telegram_filesender Goto Github PK
View Code? Open in Web Editor NEWAn easy and automatic way to post a series of files to the telegram desktop app, along with personalized descriptions.
License: BSD 3-Clause "New" or "Revised" License
An easy and automatic way to post a series of files to the telegram desktop app, along with personalized descriptions.
License: BSD 3-Clause "New" or "Revised" License
Type the number: 2
2022-04-26 20:57:59,909-INFO-Connecting...
2022-04-26 20:58:00,036-INFO-Connected! Production DC1 - IPv4 - TCPAbridgedO
2022-04-26 20:58:00,038-INFO-NetworkTask started
2022-04-26 20:58:00,337-INFO-Time synced: 2022-04-26 23:57:59.712289 UTC
2022-04-26 20:58:00,610-INFO-Session initialized: Layer 140
2022-04-26 20:58:00,610-INFO-Device: CPython 3.10.1 - Pyrogram 2.0.13
2022-04-26 20:58:00,611-INFO-System: Windows 10 (EN)
2022-04-26 20:58:00,612-INFO-Session started
2022-04-26 20:58:00,617-INFO-PingTask started
2022-04-26 20:58:00,851-INFO-Started 8 HandlerTasks
2022-04-26 20:58:01,542-INFO-Stopped 8 HandlerTasks
2022-04-26 20:58:01,542-INFO-PingTask stopped
2022-04-26 20:58:01,544-INFO-Disconnected
2022-04-26 20:58:01,544-INFO-NetworkTask stopped
2022-04-26 20:58:01,544-INFO-Session stopped
Traceback (most recent call last):
File "C:\Users\Casa\Desktop\Telegram sender\zimatise\zimatise_one.py", line 623, in
main()
File "C:\Users\Casa\Desktop\Telegram sender\zimatise\zimatise_one.py", line 610, in main
telegram_filesender.main(folder_path_project, dict_config)
File "C:\Users\Casa\Desktop\Telegram sender\Telegram_filesender\telegram_filesender.py", line 384, in main
send_via_telegram_api(folder_path_descriptions, dict_config)
File "C:\Users\Casa\Desktop\Telegram sender\Telegram_filesender\telegram_filesender.py", line 268, in send_via_telegram_api
chat_id = process_to_send_telegram(folder_path_descriptions, dict_config)
File "C:\Users\Casa\Desktop\Telegram sender\Telegram_filesender\telegram_filesender.py", line 342, in process_to_send_telegram
chat_id = process_create_channel(folder_path_descriptions)
File "C:\Users\Casa\Desktop\Telegram sender\Telegram_filesender\telegram_filesender.py", line 241, in process_create_channel
chat_id = create_channel(title=title, description=description)
File "C:\Users\Casa\Desktop\Telegram sender\Telegram_filesender\api_telegram.py", line 256, in create_channel
chat_id = return_chat["id"]
TypeError: 'Chat' object is not subscriptable
C:\Users\Casa\Desktop\Telegram sender\zimatise>pause
Pressione qualquer tecla para continuar. . .
its posting on contentious mode can you guide how to schedule post on regular interval ?
When upload HEVC video file .mkv, change format .mkv to .mp4 to upload as stream there is an error
Type the number: 2
1/1 Uploading: E:\2\1.mp4
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.p
y", line 932, in _bootstrap_inner
self.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.p
y", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 1366, in _readerthread
buffer.append(fh.read())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\encodings\c
p1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6331: characte
r maps to
E:\2\1.mp4
Exception in thread Thread-3:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.p
y", line 932, in _bootstrap_inner
self.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.p
y", line 870, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 1366, in _readerthread
buffer.append(fh.read())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\encodings\c
p1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6331: characte
r maps to
Process Process-2:
Traceback (most recent call last):
File "D:\1\Code\Telegram_filesender-master\ffprobe_micro.py", line 53, in ffprobe
result = subprocess.run(command_array, stdout=subprocess.PIPE, stderr=subprocess.
PIPE, universal_newlines=True)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 491, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 1024, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 1416, in _communicate
stdout = stdout[0]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\1\Code\Telegram_filesender-master\api_telegram.py", line 76, in send_video
metadata = ffprobe(file_path).get_output_as_dict()
File "D:\1\Code\Telegram_filesender-master\ffprobe_micro.py", line 55, in ffprobe
logger.critical("ffprobe failed to run on %s, with the following error: '%s'\n"
NameError: name 'logger' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\1\Code\Telegram_filesender-master\ffprobe_micro.py", line 53, in ffprobe
result = subprocess.run(command_array, stdout=subprocess.PIPE, stderr=subprocess.
PIPE, universal_newlines=True)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 491, in run
stdout, stderr = process.communicate(input, timeout=timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 1024, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\subprocess.
py", line 1416, in _communicate
stdout = stdout[0]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\multiproces
sing\process.py", line 315, in _bootstrap
self.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\multiproces
sing\process.py", line 108, in run
self._target(*self._args, **self.kwargs)
File "D:\1\Code\Telegram_filesender-master\time_out.py", line 12, in func_subproces
s
return_dict["return"] = func(**dict_params)
File "D:\1\Code\Telegram_filesender-master\api_telegram.py", line 82, in send_video
print(ffprobe(file_path).get_output_as_dict())
File "D:\1\Code\Telegram_filesender-master\ffprobe_micro.py", line 55, in ffprobe
logger.critical("ffprobe failed to run on %s, with the following error: '%s'\n"
NameError: name 'logger' is not defined
Traceback (most recent call last):
File "telegram_filesender.py", line 402, in
main(folder_script_path, dict_config)
File "telegram_filesender.py", line 394, in main
send_via_telegram_api(folder_path_descriptions, dict_config)
File "telegram_filesender.py", line 287, in send_via_telegram_api
send_file(dict_file_data, chat_id, time_limit)
File "D:\1\Code\Telegram_filesender-master\api_telegram.py", line 248, in send_file
return_ = time_out.time_out(
File "D:\1\Code\Telegram_filesender-master\time_out.py", line 57, in time_out
return return_dict["return"]
File "", line 2, in getitem
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\multiproces
sing\managers.py", line 850, in _callmethod
raise convert_to_error(kind, result)
KeyError: 'return'
After pasting the path this error is thrown:
Traceback (most recent call last):
File "C:\...\Telegram_filesender-master\telegram_filesender.py", line 404, in <module>
main(folder_script_path, dict_config)
.
.
.
File "C:\...\lib\site-packages\pandas\io\excel\_openpyxl.py", line 49, in __init__
from openpyxl.workbook import Workbook
ModuleNotFoundError: No module named 'openpyxl'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.