diff --git a/examples/conversationbot.py b/examples/conversationbot.py index 70f7f1cb0..b06e90588 100644 --- a/examples/conversationbot.py +++ b/examples/conversationbot.py @@ -1,11 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# -# Simple Bot to reply to Telegram messages # This program is dedicated to the public domain under the CC0 license. -""" -This Bot uses the Updater class to handle the bot. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples +""" First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctrl-C on the command line. diff --git a/examples/conversationbot2.py b/examples/conversationbot2.py index 160a132dd..247c79591 100644 --- a/examples/conversationbot2.py +++ b/examples/conversationbot2.py @@ -1,11 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# -# Simple Bot to reply to Telegram messages # This program is dedicated to the public domain under the CC0 license. -""" -This Bot uses the Updater class to handle the bot. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples +""" First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctrl-C on the command line. diff --git a/examples/echobot2.py b/examples/echobot2.py index 868a03f02..99188f4a9 100644 --- a/examples/echobot2.py +++ b/examples/echobot2.py @@ -1,11 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This program is dedicated to the public domain under the CC0 license. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples -"""Simple Bot to reply to Telegram messages. - -This program is dedicated to the public domain under the CC0 license. - -This Bot uses the Updater class to handle the bot. +""" +Simple Bot to reply to Telegram messages. First, a few handler functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. diff --git a/examples/inlinebot.py b/examples/inlinebot.py index 4c4c89689..d0e00c797 100644 --- a/examples/inlinebot.py +++ b/examples/inlinebot.py @@ -1,12 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This program is dedicated to the public domain under the CC0 license. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples -"""Simple Bot to reply to Telegram messages. - -This program is dedicated to the public domain under the CC0 license. - -This Bot uses the Updater class to handle the bot. - +""" First, a few handler functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctrl-C on the command line. diff --git a/examples/inlinekeyboard.py b/examples/inlinekeyboard.py index 8b699f932..bee87db74 100644 --- a/examples/inlinekeyboard.py +++ b/examples/inlinekeyboard.py @@ -1,8 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -"""Basic example for a bot that uses inline keyboards. - # This program is dedicated to the public domain under the CC0 license. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples + +""" +Basic example for a bot that uses inline keyboards. """ import logging diff --git a/examples/passportbot.py b/examples/passportbot.py index aa57605d8..24d709b56 100644 --- a/examples/passportbot.py +++ b/examples/passportbot.py @@ -1,9 +1,14 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# -# Simple Bot to print/download all incoming passport data # This program is dedicated to the public domain under the CC0 license. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples + """ +Simple Bot to print/download all incoming passport data + See https://telegram.org/blog/passport for info about what telegram passport is. See https://git.io/fAvYd for how to use Telegram Passport properly with python-telegram-bot. diff --git a/examples/paymentbot.py b/examples/paymentbot.py index f512bb344..388879f81 100644 --- a/examples/paymentbot.py +++ b/examples/paymentbot.py @@ -1,9 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# This program is dedicated to the public domain under the CC0 license. # -"""Basic example for a bot that can receive payment from user. +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples -This program is dedicated to the public domain under the CC0 license. +""" +Basic example for a bot that can receive payment from user. """ import logging diff --git a/examples/persistentconversationbot.py b/examples/persistentconversationbot.py index 81dc97419..acc4ea8d7 100644 --- a/examples/persistentconversationbot.py +++ b/examples/persistentconversationbot.py @@ -1,11 +1,12 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# -# Simple Bot to reply to Telegram messages # This program is dedicated to the public domain under the CC0 license. -""" -This Bot uses the Updater class to handle the bot. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples +""" First, a few callback functions are defined. Then, those functions are passed to the Dispatcher and registered at their respective places. Then, the bot is started and runs until we press Ctrl-C on the command line. diff --git a/examples/timerbot.py b/examples/timerbot.py index c21563a55..609d17bc4 100644 --- a/examples/timerbot.py +++ b/examples/timerbot.py @@ -1,10 +1,13 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - - -"""Simple Bot to send timed Telegram messages. - # This program is dedicated to the public domain under the CC0 license. +# +# THIS EXAMPLE HSA BEEN UPDATED TO WORK WITH THE BETA VERSION 12 OF PYTHON-TELEGRAM-BOT. +# If you're still using version 11.1.0, please see the examples at +# https://github.com/python-telegram-bot/python-telegram-bot/tree/v11.1.0/examples + +""" +Simple Bot to send timed Telegram messages. This Bot uses the Updater class to handle the bot and the JobQueue to send timed messages.