а так сказать, с разбега туда занырнуть?
что из себя представляют разные фреймворки nodejs, angular, react, что из этого более актуально и под какие задачи используются?
@bot.message_handler(content_types=['document'])
def send_text(message):
try:
try:
save_dir = message.caption
except:
save_dir = os.getcwd()
s = "[!] you aren't entered directory, saving to {}".format(save_dir)
bot.send_message(message.chat.id, str(s))
file_name = message.document.file_name
file_id = message.document.file_name
file_id_info = bot.get_file(message.document.file_id)
downloaded_file = bot.download_file(file_id_info.file_path)
src = file_name
with open(save_dir + "/" + src, 'wb') as new_file:
new_file.write(downloaded_file)
bot.send_message(message.chat.id, "[*] File added:\nFile name - {}\nFile directory - {}".format(str(file_name), str(save_dir)))
except Exception as ex:
bot.send_message(message.chat.id, "[!] error - {}".format(str(ex)))
QCompleter* mycompletear = new QCompleter(this);
mycompletear->setCaseSensitivity(Qt::CaseInsensitive);
mycompletear->setModel(proxyModel);
mycompletear->setCompletionColumn(1);
mycompletear->setCompletionMode(QCompleter::UnfilteredPopupCompletion);
ui->comp_comb->setCompleter(mycompletear)
from telethon import TelegramClient
api_id = 000000 # integer
api_hash = '' # string
phone_number = '' # strings
if __name__ == '__main__':
client = TelegramClient('history_lurker', api_id=api_id, api_hash=api_hash)
client.connect()
if not client.is_user_authorized():
client.send_code_request(phone_number)
client.sign_in(phone_number, input('Enter code: '))
chat = InputPeerChat(chat_id)
count, messages, senders = client.get_message_history('Stickers', limit=5)
for message in messages:
print(message.id, message.message)