python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Limit the access of telegram bot through Chat ID
I have attached the code. I want chat_id to be accessed from the text file located at my local machine.
#constants.py
chatid_list = []
file1 = open(r'D:\\folder1\\chatids.txt', "r")
fo...

ns28
Votes: 0
Answers: 2
(Pyrogram/Telegrm bot) Russian words are not displayed correctly in Telegram
I made a word randomizer which works with txt file of words. But the bot send messages in wrong coding and i receive "РѕР±СЂСЏРґРЅРёРє" when it should be "обрядник". How to fix tha...
pyrogrammer228
Votes: 0
Answers: 0
How to upload instant playable video to telegram
I am making a telegram bot to upload videos in my local PC. But when I sent the video, that message is very dumb. like this
Image 1
But I need videos like this
Image 2
Image 3
my code is
from pyrogram...
tom jerry
Votes: 0
Answers: 2
(Telegram bot/Pyrogram) How to make a text randomizer on Python that will be picking random text without a need to restart the code?
I wanted to make a telegram bot which sends you a random word from text file (need that for a project) I made this:
import random
lines = open('C:\\Users\\User\\Desktop\\singnplur.txt').read().splitli...
pyrogrammer228
Votes: 0
Answers: 1