mirror of
https://github.com/house-of-vanity/gaspar.git
synced 2025-07-07 02:34:06 +00:00
Update messages.
This commit is contained in:
@ -166,7 +166,7 @@ def main():
|
||||
else:
|
||||
easy_send(client_id=query.from_user, torent=torrent)
|
||||
query.answer()
|
||||
query.edit_message_text(text=f"{msg}📨 <b>Sent to RPC client</b>", parse_mode='HTML',
|
||||
query.edit_message_text(text=f"{msg}📨 <b>Sent to RPC /client</b>", parse_mode='HTML',
|
||||
disable_web_page_preview=True)
|
||||
|
||||
updater = Updater(token, use_context=True)
|
||||
|
@ -60,7 +60,7 @@ def update_watcher(bot):
|
||||
scheme, hostname, port, username, password, path = torrent.db.get_client_rpc(sub)
|
||||
if send_to_client_rpc(scheme, hostname, port, username, password, path, torrent.meta['info_hash']):
|
||||
log.info("Push update to client Transmission RPC for %s", torrent.meta['info_hash'])
|
||||
msg = f"{msg}\n* Added to your Transmission: {scheme}://{hostname}:{port}/{path}"
|
||||
msg = f"{msg}📨 <b>Sent to RPC /client</b>"
|
||||
else:
|
||||
log.warning("Failed push update to client Transmission RPC for %s",
|
||||
torrent.meta['info_hash'])
|
||||
|
Reference in New Issue
Block a user