How to make auto-run python file when time is 06:00 P.M – Telegram API
I have telegram bot which is made by python. The file must run at 06:00 P.M everyday. My PC is Windows 10. How can I achieve this , please guide me.
I have telegram bot which is made by python. The file must run at 06:00 P.M everyday. My PC is Windows 10. How can I achieve this , please guide me.
I am building a project based on Django and one of my intentions is to have a telegram bot which is receiving information from a Telegram group. I was able to implement the bot to send messages in Telegram, no…
I am building a telegram-bot and using Dialogflow in it, I am getting the following error : 2021-11-19 23:26:46,936 - __main__ - ERROR - Update '{'message': {'entities': [], 'delete_chat_photo': False, 'text': 'hi', 'date': 1637344606, 'new_chat_members': [], 'channel_chat_created': False, 'message_id': 93,…
I was trying to upload pdf files to telegram bot with python but it is not working. Where is my mistake? def textbooks(update,context): path = r"C:UsersYa'weDownloadsPython Practice Book (en)(1).pdf" with open(os.path.join(os.path.dirname(__file__), path), 'r') as input_file: content = input_file.read() chat_id=update.effective_chat.id return…
I am wanting to create a bot for telegram and a web application from which I can edit and store the commands for said bot. The problem arises when I deploy in heroku, since I cannot run the bot and…
How I make two parametres for check database info = db.execute(f"SELECT * FROM 'storage_users' WHERE status = ? balance = ?", [status, balance]) Two WHERE parametres
i wrote this program : import scrapetube import hashlib import telegram import requests import json from pytube import YouTube from time import sleep import os bot_token = 'my token' bot_chatID = '@PinkPanthersShow' bot = telegram.Bot(token=f'{bot_token}') c_videos = scrapetube.get_channel("UC1fIyfhQtm1fSljyKBf2uKA") videos =…
Here's my code: from telegram import * from telegram.ext import * import telegram, telegram.ext u = Updater('TOKEN', use_context=True) j=u.job_queue def set(update: Update, context: CallbackContext): user_says=' '.join(context.args) user_says=user_says.split(' ') global item, chat_id item=user_says[1:] chat_id=update.effective_chat.id j.run_once(callback, int(user_says[0])) def callback(context: telegram.ext.CallbackContext): context.bot.send_message(chat_id=chat_id, text=f'Great…
I'm trying to scrape recent releases of movies with the URL. But I want to be notified of each new release. I also want to set a timer, let's say every two hours the script will check for a new…
I have telegram channel/group where i add members manually and i remove/kick users manually after one/two/three month. Is there any way to do this task automatically, I mean can we remove/kick user from channel/group automatically or by scheduling? Any sample…