Telegram News / Beta / Unofficial Desktop Versions / Web / TG Bots / Subreddit / DMG by RTP [MacOS]
251 subscribers
1.78K photos
2.77K videos
1.14K files
20.1K links
Telegram Channel by @roadtopetabyte http://pixly.me/rtp - Announcements: @rtptme
Download Telegram
Dear friends,

We saw that you have accumulated a lot of questions about the Nicegram Happy Lottery!

We have collected all the answers in one place: https://telegra.ph/FAQ---Nicegram-Happy-Lottery-01-03-2 ☝️

Don't miss your chance to strike it rich with the Nicegram Happy Lottery! Your lucky day has arrived! 🍀
[python-telegram-bot] How can I get a bot to receive two messages without looping through the MessageHandler function?
Here is a simple telegram bot I made:
import logging from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler, MessageHandler, filters from telegram import Update from recommend_book import recommend_book import os with open('.token', 'r') as f: token = f.readlines()[0].strip() # info for the book to get recommendation for id = [] title = [] logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO ) async def start(update: Update, context: ContextTypes.DEFAULT_TYPE): await context.bot.send_message( text = 'Search for your book here: http://192.168.0.23:5454 and send me the ID', chat_id = update.effective_chat.id ) async def get_book(update: Update, context: ContextTypes.DEFAULT_TYPE): id.append(update.message.text) await context.bot.send_message( text = 'What is the title of the book?', chat_id = update.effective_chat.id ) title.append(update.message.text) await recommend_book(title[0], id[0]) await context.bot.send_message( text = '/recommendation', chat_id = update.effective_chat.id ) async def recommendation(update: Update, context: ContextTypes.DEFAULT_TYPE): with open(f'recommendation.txt', 'r') as f: book = f.readlines()[0] await context.bot.send_message( text = book, chat_id = update.effective_chat.id ) os.remove('recommendation.txt') while title: title.pop() while id: id.pop() if __name__ == '__main__': application = ApplicationBuilder().token(token).build() start_handler = CommandHandler('start', start) application.add_handler(start_handler) recommendation_handler = CommandHandler('recommendation', recommendation) application.add_handler(recommendation_handler) book_handler = MessageHandler(filters.TEXT, get_book) application.add_handler(book_handler) application.run_polling() 
The bot has someone open a database of books and choose a book they like and send the bot the id. Then the bot sends them a recommendation for a similar book. It requires the user to send both an id and title for the book.The flow is as such.
1) user sends '/start' command 2) bot responds with link to database 3) user sends the id (an integer) 4) bot responds asking for the title 5) user sends the title (a string) 6) bot responds with a link to the '/recommendation' command 7) user clicks '/recommendation' command 8) bot sends the title of a book as a recommendation (a string) 
The only issue is that when the bot receives any text it calls get_book()
. The user sends the id and the bot receives it and saves it to id[0]
but then it calls get_book()
again in response to the text the user sent as the id. This means the bot never receives the title and therefore the recommend_book()
function fails.I need the bot to accept the first text message as the id and the second text message as the title. It should only call get_book()
in response to the initial text (the id).What am I doing wrong?
Submitted January 03, 2023 at 08:13PM by Pickinanameainteasy
on r/TelegramBots via https://www.reddit.com/r/TelegramBots/comments/102gkyi/pythontelegrambot_how_can_i_get_a_bot_to_receive/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Suggested by Uk (@UK_ordersUKP / 5881611870)

Suggested on 03.01.2023 19:29

Suggestion:

I want to change the order of the accounts on nicegram
It is the right time for Telegram to implement AI like chatGPT into a Bot that is capable of answering most of my questions. it will be the best thing a Premium user can get.
As we are entering the AI pandemic and language model, it will be a pleasure not to search for answers in a web browser and have the ability to do that inside Telegram. how do i convince the world this is the most awesome idea?
Submitted January 03, 2023 at 09:14PM by Taboli
on r/Telegram via https://www.reddit.com/r/Telegram/comments/102i3xq/it_is_the_right_time_for_telegram_to_implement_ai/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Telegram desktop does not open on certain networks
I can use telegram desktop when I'm connected to my home wifi and when I use the hotspot of my cellphone carrier A (I don't want to say names here).But when I use the hotspot of my cellphone carrier B then telegram desktop just opens with a white list of contacts and the loading circle thing.Can anyone tell me why this happens and how can I fix it?The telegram version I'm using is: Telegram Desktop Version 4.5.2 x64
Submitted January 03, 2023 at 09:50PM by milojarow
on r/Telegram via https://www.reddit.com/r/Telegram/comments/102j0f4/telegram_desktop_does_not_open_on_certain_networks/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
If I reset my account, is my chat history deleted for my contacts as well?
I'm unable to get into my account due to 2fa and need to reset. I've been wanting to delete my chat history, but now that I can't get in I'm stuck. Will resetting it delete my chat history for the contacts I've communicated with as well?
Submitted January 03, 2023 at 11:32PM by crashmeifyoucan
on r/Telegram via https://www.reddit.com/r/Telegram/comments/102lq4z/if_i_reset_my_account_is_my_chat_history_deleted/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Video/photo download on desktop client
So I know that on mobile every time you even view a picture/video it gets downloaded for some reason, but what about on the desktop client? Does it work the same and download the file somewhere to my computer or does it just let me view it in the application without downloading it? Im in a few misc groups and dont really want to delete every single picture/video i watch in them.
Submitted January 04, 2023 at 01:24AM by Chikosenpai86
on r/Telegram via https://www.reddit.com/r/Telegram/comments/102oipm/videophoto_download_on_desktop_client/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Video compressed while sending as a file.
I noticed for the first time that file video are getting compressed, normally it would be the same size as the original this time they are half the size. Is this a restriction from Telegram as we keep getting them from a non premium account?
Submitted January 04, 2023 at 02:33AM by curlygang
on r/Telegram via https://www.reddit.com/r/Telegram/comments/102q48j/video_compressed_while_sending_as_a_file/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Flooding multiple devices with notification sounds
So I'm chatting in the desktop client within my small group, then click away to check something in the browser. The next message comes in and the notification sound goes off on the PC, and on my three other devices in the same room which have the telegram client (phone, tablet, laptop). They all go off within a second of each other. Then the next message comes in and the new barrage of notifications goes off. Rinse and repeatIs there some way to tame these things without having to mute the group? Why do all my devices go off so quick? Can they skip the first notification and wait to see if I haven't come back to my current primary chat client for a few minutes? There gotta be a way to make this less annoying.Anyone else runs into this?
Submitted January 04, 2023 at 02:55AM by xia03
on r/Telegram via https://www.reddit.com/r/Telegram/comments/102qlaj/flooding_multiple_devices_with_notification_sounds/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Caller A (windows 10 PC) to Caller B (Windows 11 PC). Caller B cannot see Caller A's camera no matter who starts the call. Issue just started after a year with no trouble.
Is it possible this is a TCP Port issue?If so, what ports? Still 443, 80, 88 and 8443? Because those should be working fine.Is there a way to get a verbose debug log out of both clients that I can compare to see if a handshake is failing somewhere?
Submitted January 04, 2023 at 04:47AM by Kiernian
on r/Telegram via https://www.reddit.com/r/Telegram/comments/102t19q/caller_a_windows_10_pc_to_caller_b_windows_11_pc/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
Kotatogram last beta is running on previous MacOS, this means MacOS 10.12 , 13 and 14 where previously the app crashed at login.
Next Generation of Telegram Mac App - Bugs at launch should be fixed soon
1684 groups and channels related to child abuse banned on January, 3.
Total this month: 4601
Report child abuse using the in-app 'Report' button or to stopCA@telegram.org.
276 terrorist bots and channels banned on January, 3.
Total this month: 726
Report terrorist content using the in-app 'Report' button or to abuse@telegram.org.
🤖 New bot
📋 Name: JSONiceBot
🆔 Username: @JSONiceBot
⭐️ Rating: ⭐️⭐️⭐️⭐️ (4.2/5 on 58 votes)

ℹ️Description: This bot allows you to view JSON objects & keys as interactive buttons!
Forward a message to see its details in JSON.
You can also trigger a sample callback, it'll give you the JSON file of that callback.
You can send it a JSON file in .txt or .json format to see its objects & keys.
🌐 Languages: English
💬 Supports inline: no
👥 Groups: no
#️⃣ Tags: #tool #json #development #web #programming #jsonviewer
🤖 New bot
📋 Name: TruthOrDareRobot
🆔 Username: @TruthOrDareRobot
⭐️ Rating: ⭐️⭐️⭐️⭐️ (4/5 on 112 votes)

ℹ️Description: Play truth or dare with your friends with various modes.
🌐 Languages: English Italian
💬 Supports inline: no
👥 Groups: yes
#️⃣ Tags: #games #truth #dare #play
This media is not supported in your browser
VIEW IN TELEGRAM
You can decorate photos and video in the redesigned media editor – with auto-smoothing lines and dynamic brush widths. New tools let you blur, add shapes and apply text with different backgrounds and fonts – and all users can add custom emoji for extra flair. #TelegramTips https://t.co/SvgCoCtomW
Url: https://twitter.com/telegram/status/1610637297573044231

Telegram Backup by @tmebackup
A @rtptme project - Other backups: https://swiy.so/tme
Receiving emails with Telegram codes, is someone trying to hack me?
Basically for the last couple of days I am receiving email with Telegram codes. I guess someone is trying to use my phone number to login to Telegram. Is this how it works?Should I be worried?
Submitted January 04, 2023 at 03:08PM by tumblatum
on r/Telegram via https://www.reddit.com/r/Telegram/comments/1034ja5/receiving_emails_with_telegram_codes_is_someone/ Backup by @tmebackup A @rtptme project - Other backups: http://pixly.link/tme
This media is not supported in your browser
VIEW IN TELEGRAM
Decora fotos y videos en el editor multimedia rediseñado, con suavizado automático de líneas y ancho dinámico de brocha. Puedes difuminar, añadir formas y aplicar texto con diferentes fondos y fuentes, y todos pueden usar emojis personalizados para un estilo extra. #TelegramTips https://t.co/zfAQ5lneUp
Url: https://twitter.com/telegram_es/status/1610643155703005190

Telegram Backup by @tmebackup
A @rtptme project - Other backups: https://swiy.so/tme