This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from submodule import subfunction | |
| if __name__ == '__main__': | |
| main() | |
| def main(): | |
| subfunction(input('Enter something: ')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from module import get_random_num | |
| if __name__ == '__main__': | |
| main() | |
| def main(): | |
| print(get_random_num()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from telegram.ext import Updater, CallbackQueryHandler, CallbackContext | |
| from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup | |
| import random | |
| import logging | |
| logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG) | |
| bot_token = %YOUR_BOT_TOKEN_HERE% | |
| test_channel_id = %YOUR_TEST_CHANNEL_ID_HERE% |