Skip to content

Commit fd306c3

Browse files
committed
Remove LGPLv3 license notices from example files
Examples are licensed under the terms of CC0 1.0 Universal License
1 parent 9409d9c commit fd306c3

10 files changed

Lines changed: 0 additions & 180 deletions

examples/callback_query_handler.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
from pyrogram import Client
202

213
"""This example shows how to handle callback queries, i.e.: queries coming from inline button presses.

examples/echo_bot.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
from pyrogram import Client, Filters
202

213
"""This simple echo bot replies to every private text message.

examples/get_chat_members.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
import time
202

213
from pyrogram import Client

examples/get_chat_members2.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
import time
202
from string import ascii_lowercase
213

examples/get_history.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
import time
202

213
from pyrogram import Client

examples/hello_world.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
from pyrogram import Client
202

213
"""This example demonstrates a basic API usage"""

examples/query_inline_bots.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
from pyrogram import Client
202

213
"""This example shows how to query an inline bot"""

examples/raw_update_handler.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
from pyrogram import Client
202

213
"""This example shows how to handle raw updates"""

examples/send_bot_keyboards.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
from pyrogram import Client, ReplyKeyboardMarkup, InlineKeyboardMarkup, InlineKeyboardButton
202

213
"""This example will show you how to send normal and inline keyboards.

examples/welcome_bot.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
# Pyrogram - Telegram MTProto API Client Library for Python
2-
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
3-
#
4-
# This file is part of Pyrogram.
5-
#
6-
# Pyrogram is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU Lesser General Public License as published
8-
# by the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# Pyrogram is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU Lesser General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU Lesser General Public License
17-
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18-
191
from pyrogram import Client, Emoji, Filters
202

213
"""This is the Welcome Bot in @PyrogramChat.

0 commit comments

Comments
 (0)