-
Notifications
You must be signed in to change notification settings - Fork 361
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: ShivangKakkar/StringSessionBot
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: Frds-ubot/FrdsStringSessionBot
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 16 commits
- 2 files changed
- 1 contributor
Commits on Apr 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7ad85ab - Browse repository at this point
Copy the full SHA 7ad85abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05d3b31 - Browse repository at this point
Copy the full SHA 05d3b31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 486083b - Browse repository at this point
Copy the full SHA 486083bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4efc51 - Browse repository at this point
Copy the full SHA d4efc51View commit details -
Configuration menu - View commit details
-
Copy full SHA for b870b3e - Browse repository at this point
Copy the full SHA b870b3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0579402 - Browse repository at this point
Copy the full SHA 0579402View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0458170 - Browse repository at this point
Copy the full SHA 0458170View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e44149 - Browse repository at this point
Copy the full SHA 4e44149View commit details -
Configuration menu - View commit details
-
Copy full SHA for b301023 - Browse repository at this point
Copy the full SHA b301023View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd94d93 - Browse repository at this point
Copy the full SHA dd94d93View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2d5f9c - Browse repository at this point
Copy the full SHA d2d5f9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93ca111 - Browse repository at this point
Copy the full SHA 93ca111View commit details -
import traceback from Data import Data from pyrogram import Client from pyrogram.types import CallbackQuery, InlineKeyboardMarkup, InlineKeyboardButton from StringSessionBot.generate import generate_session # Callbacks @Client.on_callback_query() async def _callbacks(bot: Client, callback_query: CallbackQuery): user = await bot.get_me() # user_id = callback_query.from_user.id mention = user["mention"] query = callback_query.data.lower() if query.startswith("home"): if query == 'home': chat_id = callback_query.from_user.id message_id = callback_query.message.message_id await bot.edit_message_text( chat_id=chat_id, message_id=message_id, text=Data.START.format(callback_query.from_user.mention, mention), reply_markup=InlineKeyboardMarkup(Data.buttons), ) elif query == "about": chat_id = callback_query.from_user.id message_id = callback_query.message.message_id await bot.edit_message_text( chat_id=chat_id, message_id=message_id, text=Data.ABOUT, disable_web_page_preview=True, reply_markup=InlineKeyboardMarkup(Data.home_buttons), ) elif query == "help": chat_id = callback_query.from_user.id message_id = callback_query.message.message_id await bot.edit_message_text( chat_id=chat_id, message_id=message_id, text="**Here's How to use me**\n" + Data.HELP, disable_web_page_preview=True, reply_markup=InlineKeyboardMarkup(Data.home_buttons), ) elif query == "generate": await callback_query.message.reply( "Please choose the python library you want to generate string session for", reply_markup=InlineKeyboardMarkup([[ InlineKeyboardButton("Pyrogram", callback_data="pyrogram"), InlineKeyboardButton("Telethon", callback_data="telethon") ]]) ) elif query in ["pyrogram", "telethon"]: await callback_query.answer() try: if query == "pyrogram": await generate_session(bot, callback_query.message) else: await generate_session(bot, callback_query.message, telethon=True) except Exception as e: print(traceback.format_exc()) print(e) await callback_query.message.reply(ERROR_MESSAGE.format(str(e))) ERROR_MESSAGE = "Oops! An exception occurred! \n\n**Error** : {} " \ "\n\nPlease visit @StarkBotsChat if this message doesn't contain any " \ "sensitive information and you if want to report this as " \ "this error message is not being logged by us!"Configuration menu - View commit details
-
Copy full SHA for 5e0c142 - Browse repository at this point
Copy the full SHA 5e0c142View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe3fdb9 - Browse repository at this point
Copy the full SHA fe3fdb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddff786 - Browse repository at this point
Copy the full SHA ddff786View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97283b3 - Browse repository at this point
Copy the full SHA 97283b3View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...master