Как можно загрузить документ на гугл диск, без сохранения на сервер?
на хостинге
I bet Instagram filter IP addresses from Heroku, AWS, GCP, etc... to prevent external sources to make huge queries and crawling. That draw ressources from their servers- SO
Как можно добавить пользователя в контакты автоматически? Без этого сообщение не отправляется.
Q: I‘ve just signed up and didn’t send any messages yet, but my account is limited.
Some numbers may trigger an overly harsh response from our system, either due to their previous owners‘ activities or due to them being certain virtual/VOIP numbers. We’re sorry if this resulted in your account being limited for no reason.
If you think this is your case, please contact @SpamBot and tell it your story.
ModuleNotFoundError: No module named 'pyTelegramBotAPI'
A simple echo bot
The TeleBot class (defined in _init_.py) encapsulates all API calls in a single class. It provides functions such as send_xyz (send_message, send_document etc.) and several ways to listen for incoming messages.
Create a file called echo_bot.py. Then, open the file and create an instance of the TeleBot class.
import telebot bot = telebot.TeleBot("TOKEN", parse_mode=None) # You can set parse_mode by default. HTML or MARKDOWN
Note: Make sure to actually replace TOKEN with your own API token.
Любые костыли готовы рассматривать.
class Map(dict):
"""
Example:
m = Map({'first_name': 'Eduardo'}, last_name='Pool', age=24, sports=['Soccer'])
"""
def __init__(self, *args, **kwargs):
super(Map, self).__init__(*args, **kwargs)
for arg in args:
if isinstance(arg, dict):
for k, v in arg.items():
self[k] = v
if kwargs:
for k, v in kwargs.items():
self[k] = v
def __getattr__(self, attr):
return self.get(attr)
def __setattr__(self, key, value):
self.__setitem__(key, value)
def __setitem__(self, key, value):
super(Map, self).__setitem__(key, value)
self.__dict__.update({key: value})
def __delattr__(self, item):
self.__delitem__(item)
def __delitem__(self, key):
super(Map, self).__delitem__(key)
del self.__dict__[key]
>>> json_data = {
... "name": "Terminal",
... "packageName": "application",
... "order": 20,
... "versionName": "1.37"
... }
>>> data = Map(json_data)
>>> data.name
'Terminal'
>>> data.order
20
$ cat args.sh
#!/bin/bash
ARGS="$*"
for arg in $ARGS; do
echo -e "действие с /etc/AlterPro/$arg"
done
--------
$ bash args.sh apps_sys apps_map apps_ctrl apps_port
действие с /etc/AlterPro/apps_sys
действие с /etc/AlterPro/apps_map
действие с /etc/AlterPro/apps_ctrl
действие с /etc/AlterPro/apps_port
No. If you upload 120 FPS video to YouTube, the service will compress it down to 60 FPS.
If you upload a 120fps video to YouTube, it will be converted to 60fps automatically- Quora
И если да то как?
чтобы все сообщения с группы сразу появлялись на сайте
<script async src="https://telegram.org/js/telegram-widget.js?12" data-telegram-post="habrcom/11276" data-width="100%"></script>
возможность регистрации с сайта посредством телеграм авторизации
который мы смотрим на смартфоне можно отобразить на экране ноутбука